Website: https://angularjs.org/
Docs: https://docs.angularjs.org/guide
See main-module.js
<html ng-app="app">
See bootstrap.js
and main-module.js
<div id="loading">Loading...</div>
See controller.js
and after that controller-module.js
<div ng-controller="ctrl">
<h1>{{ headline }}</h1>
</div>
<div ng-controller="Controller">
<p ng-bind="sayHello"></p>
</div>
<div ng-controller="Controller">
<p ng-bind="getHelloExpression()"></p>
<button ng-click="click()">Make Click</button>
</div>
See main-module.js
<p>{{ version }}</p>
See default filters
<p>{{ prodct.price | currency }}</p>
<p>{{ prodct.pubdate | date }}</p>
<div ng-controller="Controller">
<p ng-bind="getHelloExpression()"></p>
<button ng-click="click()" ng-controller="ButtonController">{{ label }}</button>
</div>
See controller.js
<ul class="unstyled">
<li ng-repeat="item in items">{{ item.name }}</li>
</ul>
See controller.js
Using style="font-size:{{ item.val }}px"
will only work for IE <= 11; ng-style
is supported down to IE8.
<ul class="unstyled">
<li ng-repeat="item in items" ng-style="{'fontSize':(item.val+'px')}">{{ item.name }}</li>
</ul>
See controller.js
<form class="form-horizontal">
<input type="text" ng-model="input"/>
</form>
<p>Your input: {{ input }}</p>
See controller.js
<button class="btn" ng-click="add()">Add</button>
See controller.js
<p>Available items: {{ getItemsLenght() }}</p>