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.
On this page of the site you can watch the video online AngularJS Tutorial 7- Controllers with a duration of hours minute second in good quality, which was uploaded by the user Nisha Singla 17 August 2016, share the link with friends and acquaintances, this video has already been watched 1,293 times on youtube and it was liked by 25 viewers. Enjoy your viewing!