Last active
February 6, 2017 16:51
-
-
Save javaeeeee/64dc2264e0618acc8691a3b79e60091f to your computer and use it in GitHub Desktop.
AngularJS Controller As syntax in HTML
This file contains hidden or 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
<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