Angular JS basic

<script src=""></script>
Name : <input type="text" />
<h1>Hello {{name}}</h1>

Some quick notes

  • must be within ng-app
  • can specify default value with ng-init
  • ng-model to define value to be displayed later in place holder
  • use double curly braces as place holder to display value hold by ng-model

Leave a Reply

Your email address will not be published. Required fields are marked *