Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Last active August 29, 2015 14:25
Show Gist options
  • Save khoand0000/49fa8e80bb50d3add35b to your computer and use it in GitHub Desktop.
Save khoand0000/49fa8e80bb50d3add35b to your computer and use it in GitHub Desktop.
There are 2 ways to show model
  • ng-model for elements use value attribute to show information like <input>
<input type="text" ng-model="contact.name">
  • {{ model }} for elements use inner content to show information like <div>, <a>, ...
<div>
{{contact.name}}
</div>

contact model from $scope.contact in js code

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