Created
March 16, 2014 15:57
-
-
Save mduleone/9585328 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ng-app='myApp'> | |
<head> | |
<!--script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.js'></script --> | |
<script src='../angular.js'></script> | |
</head> | |
<body> | |
<!--div ng-controller="MyCtrl"> | |
<!-- input ng-model='name' type='text' placeholder='Your Name' --> | |
<div ng-controller='myController'> | |
<h1> Hello {{name}}</h1> | |
</div> | |
<div ng-controller='FirstController'> | |
<h4>The simplest adding machine ever</h4> | |
<button ng-click='add(1)' class='button'>Add</button> | |
<a ng-click='subtract(1)' class='button alert'>Subtract</a> | |
<h4>Current count: {{counter}}</h4> | |
</div> | |
<div ng-controller='ParentController'> | |
<div ng-controller='ChildController'> | |
<a ng-click='sayHello()'>Say Hello</a> | |
</div> | |
{{person}} | |
</div> | |
<div ng-controller='MyController'> | |
<input ng-model='expr' type='text' placeholder='Enter an expression' /> | |
<h2>{{parsedValue}}</h2> | |
</div> | |
<!--div ng-controller='newController'> | |
<input ng-model='to' type='email' placeholder='Recipient' /> | |
<textarea ng-model='emailBody'></textarea> | |
<pre>{{previewText}}</pre> | |
</div --> | |
<div ng-controller='newController'> | |
<div id='emailEditor'> | |
<input ng-model='to' type='email' placeholder='Recipient' /><br /> | |
<textarea ng-model='emailBody'></textarea> | |
</div> | |
<div id='emailPreview'> | |
<pre>__previewText__</pre> | |
</div> | |
</div> | |
<div> | |
{{ 'gInGeR lOvEs DoG tReAtS' | lowercase | capitalize }} | |
</div> | |
<script type='text/javascript' src='js/app.js'></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment