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.
En esta página del sitio puede ver el video en línea AngularJS Tutorial 7- Controllers de Duración hora minuto segunda en buena calidad , que subió el usuario Nisha Singla 17 agosto 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,293 veces y le gustó 25 a los espectadores. Disfruta viendo!