Upload
henk-jurriens
View
467
Download
2
Tags:
Embed Size (px)
Citation preview
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!!