title: Angularjs Material Datepicker is not working when i am trying to use it with ng-switch
body: <p>I am trying to use <strong>angular material datepicker</strong> with <strong>ng-switch</strong>, which i have given to a radio buttons based on the radio option date picker should load. But it is not working as expected. </p>
  
  <p>This is how my code looks like.</p>
  
  <p>Radio buttons</p>
  
  <pre><code>&lt;div class = "row radio"&gt;
              &lt;md-radio-group ng-model="data.group1"&gt;
  
                &lt;md-radio-button  class="md-primary fix-width" ng-model="myVar" value="OneWay"&gt;One-way&lt;/md-radio-button&gt;
                &lt;md-radio-button  class="md-primary fix-width" ng-model="myVar" value="RoundTrip"&gt;Round Trip &lt;/md-radio-button&gt;
                &lt;md-radio-button  class="md-primary fix-width" ng-model="myVar" value="MultyWay"&gt;Multi-Way + Hotal&lt;/md-radio-button&gt;
  
              &lt;/md-radio-group&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Date picker </p>
  
  <pre><code>    &lt;div class = "row Date" ng-switch="myVar"&gt;
      &lt;div class = "col-lg-1"&gt;&lt;/div&gt;
      &lt;div class = "col-lg-6" ng-switch-default&gt;
            &lt;md-input-container&gt;
              &lt;label&gt;Depart on&lt;/label&gt;
              &lt;md-datepicker ng-model="user.submissionDate"&gt;&lt;/md-datepicker&gt;
            &lt;/md-input-container&gt;
      &lt;/div&gt;
      &lt;div class = "col-lg-10" ng-switch-when="RoundTrip"&gt;
            &lt;md-input-container&gt;
              &lt;label&gt;Depart on&lt;/label&gt;
              &lt;md-datepicker ng-model="user.submissionDate"&gt;&lt;/md-datepicker&gt;
            &lt;/md-input-container&gt;
  
            &lt;md-input-container&gt;
              &lt;label&gt;Return on&lt;/label&gt;
              &lt;md-datepicker ng-model="user.submissionReturnDate"&gt;&lt;/md-datepicker&gt;
            &lt;/md-input-container&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>when i click on one way it should show the single datepicker and if i select Round trip it should show the roundtrip block. </p>
  
  <p>Hope there is no js required for this functionality?</p>
  
  <p>May i know what is wrong hear? </p>