angularjs - Time Picker not working on bootstrap -


i have following code , it's not working expected. when click on timer icon, nothing happens.

<ul class="dropdown-menu customscroll" role="menu" aria-labelledby="btn-append-to-body" ng-show="!myvm.showeta">     <li role="menuitem">         <a href="#">start time             <div class="input-group bootstrap-timepicker">                 <input type="text" id="timepicker1" class="form-control input-small" placeholder="" aria-describedby="sizing-addon2"                 ng-model=myvm.starttime"                 ng-change="myvm.getetacount('starttime');myvm.applyfilterforresultcount()"                 />                 <span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>             </div>         </a>     </li>     <li role="menuitem">         <a href="#">end time             <div class="input-group bootstrap-timepicker timepicker">                 <input type="text" id="timepicker2" class="form-control input-small" placeholder="" aria-describedby="sizing-addon2"                 ng-model="myvm.endtime"                 ng-change="myvm.getetacount('endtime');myvm.applyfilterforresultcount()"                 />                 <span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>             </div>         </a>     </li>     <!--clear div-->     <li role="menuitem" ng-click="myvm.cleartimepicker()">         <a href="#">             <p>                 <span style="color:#40a8e2;">clear</span>                 <span style="color:#333333;">  – eta</span>             </p>         </a>     </li>     <script type="text/javascript">         $('#timepicker1').timepicker();         $('#timepicker2').timepicker();     </script> </ul> 

don't try use regular bootstrap.js file angular unless know how write directives. when using angular if need dom manipulation or extend markup or behaviors (event handlers) element should use directives. timepicker can use ui-bootstrap angular module https://angular-ui.github.io/bootstrap/#/timepicker need include regular bootstrap.css , ui-bootrap-tpls.js include ui-bootstrap module dependency , can use directive.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -