AngularJS - The ng-controller directive

In  AngularJs Simple Program, I have used a controller called writeAListCtrl. A controller has about a javascript function syntax and logic, and contains the exact description of the desired functionality.

We can attach any controller to the view using the ng-controller directive.
While you are using this directive, the controller and the view start to share the same scope and can work together.



Δεν υπάρχουν σχόλια: