AngularJS Directives
As you have already seen, AngularJS directives are HTML attributes with an ng prefix.The ng-init directive initializes AngularJS application variables.
AngularJS Example
<div ng-app="" ng-init="firstName='John'">
<p>The name is <span ng-bind="firstName"></span></p>
</div>