Réponse
app.controller('myCtrl', function($scope) {
$scope.firstName = "xxx";
$scope.lastName = "xxx";
});
Colonne
Explication
AngularJS applications are controlled by controllers.
The ng-controller directive defines the application controller.
A controller is a JavaScript Object, created by a standard JavaScript object constructor.
Question
Creates two properties (variables) in the scope (firstName and lastName) with ng-controller directive.
Thématique