• Like
Tutorial AngularJS - Episódio 4 - Controllers
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Tutorial AngularJS - Episódio 4 - Controllers

  • 453 views
Published

Slide utilizado no screencast sobre controllers com AngularJS.

Slide utilizado no screencast sobre controllers com AngularJS.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
453
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
22
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Tutorial AngularJS Episódio 04 Controllers
  • 2. Controller - o que é? Classe que contém as regras de negócio da aplicação e gerencia a interação entre a view e o model
  • 3. Controller - $scope ● Objeto injetado no controller ● Contém o model (propriedades) ● comportamento (funções)
  • 4. Responsabilidades ● setar valores iniciais no model ● intermediar o relacionamento do model com a view (bidirecional no Angular)
  • 5. Definindo um controller Diretiva ng-controller
  • 6. Show me the code !
  • 7. Controller - dicas