title: Email validation in angular js
body: <p>i am learning angular from w3schoot. i stumple to understand a code like how it is working. code taken from <a href="http://www.w3schools.com/angular/angular_model.asp" rel="nofollow">http://www.w3schools.com/angular/angular_model.asp</a></p>
  
  <pre><code>&lt;form ng-app="" name="myForm"&gt;
      Email:
      &lt;input type="email" name="myAddress" ng-model="text"&gt;
      &lt;span ng-show="myForm.myAddress.$error.email"&gt;Not a valid e-mail address&lt;/span&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>what is the meaning of <strong>ng-model="text"</strong> ? basically i have see we write like <code>ng-model="Name"</code> etc but here we use text....why ?</p>
  
  <p>from where this comes <code>$error.email</code> ? help me to understand this. thanks</p>