AngularJS Tutorial 7- Controllers

Publié le: 17 août 2016
sur la chaîne: Nisha Singla
1,293
25

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.


Sur cette page du site, vous pouvez voir la vidéo en ligne AngularJS Tutorial 7- Controllers durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Nisha Singla 17 août 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,293 fois et il a aimé 25 téléspectateurs. Bon visionnage!