In this video,we are going to cover about Controllers in AngularJS.
In Angular controller is defined by a JavaScript constructor function and the role of the controller is to expose data to our view via $scope.
$scope is act like a glue between controller and view.
app.controller("userController",function($scope){
$scope.name="John";
});
If you want to use this controller in your view, you need to use a directive called ng-controller to bind controller to view.
You can also add methods on $scope to manipulate the behavior of view.
Nesta página do site você pode assistir ao vídeo on-line AngularJS Tutorial 7- Controllers duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Nisha Singla 17 Agosto 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,293 vezes e gostou 25 espectadores. Boa visualização!