title: JQuery Datetime picker plugin does not work with AngularJS in ng-view
body: <p>I am using <a href="http://xdsoft.net/jqplugins/datetimepicker/" rel="nofollow">datetime picker</a> with angularjs. </p>
  
  <p>My angularjs code looks like this. </p>
  
  <pre><code>&lt;div id="bodyContainer"&gt;                
     &lt;div ng-app="tb"&gt;           
        &lt;div ng-view&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and my view looks like this. </p>
  
  <pre><code>&lt;div class="control-group" ng-class="{error: myForm.bdatetime.$invalid}"&gt;
     &lt;label class="control-label" for="bdatetime"&gt;Date Time&lt;/label&gt;
     &lt;div class="controls"&gt;
       &lt;input type="text" ng-model="bdatetime" name="bdatetime" id="datetimepicker" required/&gt;
       &lt;span ng-show="myForm.bdatetime.$error.required" class="help-inline"&gt;Required&lt;/span&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and datetime picker is not working, It may be because view part is loading later via angularjs ajax. input controller does not exist at the time of script execution. How can I fix it. </p>
  
  <p>If i move input controller outside of ng-app something like this. it perfectly works. </p>
  
  <pre><code>&lt;div id="bodyContainer"&gt;  
     &lt;input type="text" id="datetimepicker" /&gt;              
     &lt;div ng-app="tb"&gt;           
        &lt;div ng-view&gt;&lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But this is not what I am looking for, I need to make this work with angularjs. </p>