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

Like this? Share it with your network

Share

Tutorial AngularJS - Episódio 4 - Controllers

on

  • 786 views

Slide utilizado no screencast sobre controllers com AngularJS.

Slide utilizado no screencast sobre controllers com AngularJS.

Statistics

Views

Total Views
786
Views on SlideShare
786
Embed Views
0

Actions

Likes
1
Downloads
21
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Tutorial AngularJS - Episódio 4 - Controllers Presentation 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