Skip to content

Instantly share code, notes, and snippets.

@naiduv
Last active April 30, 2016 12:58
Show Gist options
  • Select an option

  • Save naiduv/097badf8477a92c3e17421d7b8fcc73c to your computer and use it in GitHub Desktop.

Select an option

Save naiduv/097badf8477a92c3e17421d7b8fcc73c to your computer and use it in GitHub Desktop.
angluar stuff

The ng-app directive defines an AngularJS application.

The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.

The ng-bind directive binds application data to the HTML view.

<div ng-app="">
 	<p>Name: <input type="text" ng-model="name"></p>
 	<p ng-bind="name"></p>
</div>

</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment