Skip to content

Instantly share code, notes, and snippets.

@mduleone
Created March 16, 2014 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mduleone/9585328 to your computer and use it in GitHub Desktop.
Save mduleone/9585328 to your computer and use it in GitHub Desktop.
<!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