title: How to set default value to <select> in Angularjs?
body: <p>I have two selects one for classes and another for teachers as follows,</p>
  
  <pre><code>    &lt;label for=""&gt;Select Class&lt;/label&gt;&lt;br&gt; 
      &lt;select ng-model="currentClass" ng-options="class as class.name for class in classes" ng-change="listTeachers()"&gt;
      &lt;option value=""&gt;Select Class&lt;/option&gt;
  &lt;/select&gt;  
  
  
      &lt;label for=""&gt;Select Teacher&lt;/label&gt;&lt;br&gt; 
          &lt;select ng-model="currentTeacher" ng-options="teacher as teacher.name for teacher in teachers" ng-change="showStudents()"&gt;
          &lt;option value=""&gt;Select Teacher&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <ol>
  <li><p>My problem is, if choose class and then choose teacher it's fine, but after choosing teacher if again I choose another class then I want to set 2nd select a value as "select teacher", how to do it?</p></li>
  <li><p>Also tell me, is there any way of setting default value instead of setting it through <strong>option tag</strong>?</p></li>
  </ol>