AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng controller Directive

AngularJS ng-controller Directive



The ng-controller directive is used to add a controller to the AngularJS application. We can write code, and make functions and variables, which will be available in the current HTML element as objects. In AngularJS, this object is called a scope.




< element ng-controller="expression" >< /element >


Further Explanation:-


Value Description
expression The name of the controller.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS