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.
Auf dieser Seite können Sie das Online-Video AngularJS Tutorial 7- Controllers mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Nisha Singla 17 August 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,293 Mal angesehen und es wurde von 25 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!