Date post: | 13-Jul-2015 |
Category: |
Internet |
Upload: | henk-jurriens |
View: | 467 times |
Download: | 2 times |
Two way data-binding
<div>
<label>Name:</label>
<input type="text" ng-model="yourName"
placeholder="Enter a name here">
<hr>
<h1>Hello, {{yourName}}!</h1>
</div>
Templates
<div ng-controller="AlbumCtrl">
<ul>
<li ng-repeat="image in images">
<img ng-src="{{image.thumbnail}}"
alt="{{image.description}}">
</li>
</ul>
</div>
Dependency Injection
function myController(scope, notifyService) {
scope.callNotify = function (msg) {
notifyService(msg);
};
}
@henkjurriens
http://about.me/henkjurriens
nl.linkedin.com/in/henkjurriens
Thanks!!