title: My angular form input[number] validation are not working
body: <p>My angular form only shows the text that I've defined below. It is not showing the red color in the form input field to tell users that there is an error. Please tell me what is going on.</p>
  
  <p>Please help.</p>
  
  <p>Thanks!</p>
  
  <p>I've included following files in the page:</p>
  
  <pre><code>&lt;script src="js/lib/angular/angular-1.0.1.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.23.custom.css" /&gt;
  &lt;link rel="stylesheet" href="css/style.css" /&gt;
  &lt;script type="text/javascript" src="js/jquery-1.8.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I include a template called users.html and this users.html further includes the following template called pagination.html:</p>
  
  <pre><code>&lt;div style="padding-left: 252px;"&gt;
     &lt;form name="pageForm" ng-submit="search()"&gt;
        Page: &lt;input name="pageTxtField" ng-model="request.page" type="number" 
                  required min="1" max="{{totalPages}}" style="width:30px;" ng-pattern="/[0-9]+/" /&gt; of &lt;span ng-bind="totalPages"&gt;&lt;/span&gt;
     &lt;span class="error" ng-show="pageForm.pageTxtField.$error.required"&gt;
          Please enter a number!&lt;/span&gt;
     &lt;span class="error" ng-show="pageForm.pageTxtField.$error.valid"&gt;
       Enter valid number!&lt;/span&gt;
     &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>