Built-in Directive
This is the example for the In-Built Directive like ng-init & ng-repeat
HTML
<div ng-app="myModule">
<div data-ng-init="names = ['Jack', 'John', 'Tina']">
<h1>Cool loop!</h1>
<ul>
<li data-ng-repeat="name in names">{{ name }}</li>
</ul>
</div>
JavaScript
angular.module('myModule',[]);