[英]Getting error while using 'ui.bootstrap' and '720kb.datepicker' module in same Angular.js application
I am getting the following error while using ui.bootstrap
and 720kb.datepicker
module at a time in one application in Angular.js.在 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)
When i am removing ui.bootstrap
module this error is not coming but i strongly need also ui.bootstrap
module.I am explaining my code below.当我删除
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>
Please help me to resolve this error by using the both module.请使用 both 模块帮助我解决此错误。
Update ui.bootstrap
module to a version above 0.14.0 .将
ui.bootstrap
模块更新到ui.bootstrap
以上的版本。 The team behind the module prefixed the name of the directives with uib-
to avoid such collisions.模块背后的团队在指令名称前加上
uib-
以避免此类冲突。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.