 <p>You can also use data-ng-, instead of ng-, if you want to make your page HTML valid.</p> <pre><code>&lt;html ng-app&gt; &lt;head&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-ng-init="names=['shan', 'amit', 'vaibhav']"&gt; &lt;ul&gt; &lt;li data-ng-repeat="pname in names"&gt;{{pname}}&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>