Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Last active February 6, 2017 16:51
Show Gist options
  • Save javaeeeee/64dc2264e0618acc8691a3b79e60091f to your computer and use it in GitHub Desktop.
Save javaeeeee/64dc2264e0618acc8691a3b79e60091f to your computer and use it in GitHub Desktop.
AngularJS Controller As syntax in HTML
<section ng-controller="HelloController as vm">
<h4>AngularJS Greeting</h4>
<label for="name">Type your name here:</label>
<input id=name type="text" ng-model="vm.myModel">
<p>Hello {{vm.myModel}}!</p>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment