![](/img/trans.png)
[英]Button Click Event from inside a modal not firing when using angular.js and ui.bootstrap
[英]Getting error while using 'ui.bootstrap' and '720kb.datepicker' module in same Angular.js application
在 Angular.js 中的一個應用程序中一次使用ui.bootstrap
和720kb.datepicker
模塊時,我收到以下錯誤。
Error: [$compile:multidir] http://errors.angularjs.org/1.4.6/$compile/multidir?p0=datepicker&p1=&p2=da…-prev%3D%22%3Ci%20class%3D%26quot%3Bfa%20fa-arrow-circle-left%26quot%3B%3E
at Error (native)
at http://oditek.in/Gofasto/js/angularjs.js:6:416
at Q (http://oditek.in/Gofasto/js/angularjs.js:69:353)
at D (http://oditek.in/Gofasto/js/angularjs.js:62:492)
at http://oditek.in/Gofasto/js/angularjs.js:68:182
at http://oditek.in/Gofasto/js/angularjs.js:118:334
at n.$eval (http://oditek.in/Gofasto/js/angularjs.js:132:452)
at n.$digest (http://oditek.in/Gofasto/js/angularjs.js:129:463)
at n.$apply (http://oditek.in/Gofasto/js/angularjs.js:133:236)
at g (http://oditek.in/Gofasto/js/angularjs.js:87:376)
當我刪除ui.bootstrap
模塊時,這個錯誤不會出現,但我也強烈需要ui.bootstrap
模塊。我在下面解釋我的代碼。
<datepicker date-format="dd-MM-y" button-prev='<i class="fa fa-arrow-circle-left"></i>' button-next='<i class="fa fa-arrow-circle-right"></i>'>
<input type="text" name="birthdate" class="form-control" ng-model="date" placeholder="Add date" />
</datepicker>
請使用 both 模塊幫助我解決此錯誤。
將ui.bootstrap
模塊更新到ui.bootstrap
以上的版本。 模塊背后的團隊在指令名稱前加上uib-
以避免此類沖突。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.