在使用angular-ui-calendar时遇到问题。
当我从加载日历的位置更改路由时,我最终在值参数中使用了一个循环引用。
此外,当日历加载时,控制台显示错误indexOf not supported。
此错误仅在IE8和IE9上发生
我的控制器里有$scope.eventSources=[{"start":"2014-03-07T00:00:00Z","title":"Ring Child Services"},{"start":"2014-03-06T00:00:00Z","title":"Check Up On incident_2"}];
在HTML模板中
<div ui-calendar="uiConfig.calendar" class="col-sm-11 calendar" ng-model="eventSources"> </div>
任何想法都将不胜感激。
谢谢
发布于 2014-03-11 14:19:53
事实证明,这个问题是由使用location.href而不是$location.path更改位置引起的。
不确定为什么location.href会导致问题,但使用$location.path可以解决此问题。
https://stackoverflow.com/questions/22221842
复制相似问题