What is AngularJS Directives ?

AngularJS directives are HTML attributes with an ng prefix.

The “ng-init” directive initialize AngularJS application variables.

AngularJS Directives Sample
<div ng-app=”” ng-init=”userName=’Kiran'”>

<p>Name is <span ng-bind=”userName”></span></p>

</div>