我有一個關於如何在Fullcalendar中使用AngularStrap的popover的問題。 我有這個:
angular.module('calendarModule', [
'ui.calendar',
'ui.bootstrap',
'mgcrea.ngStrap'])
.controller('CalendarCtrl', function($scope,$compile,$popover,uiCalendarConfig)
作爲模塊聲明,我將使用彈出窗口。
當我嘗試使用類似的這裏aswered:Using $popover service in Angular with Fullcalendar
我有控制檯錯誤:
"Error: $popover is not a function
嘆息,方法,另外,當添加BS-酥料餅的指令一樣顯示在問題我參考,我們下一個錯誤:
"Error: [$compile:multidir] Multiple directives [bsPopover, uiCalendar] asking for new/isolated scope on: <div class="ng-pristine ng-untouched ng-valid" bs-popover="" ng-model="eventSources" calendar="myCalendar" ui-calendar="uiConfig.calendar">
加載序列:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <!-- jQuery UI -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-strap/2.1.2/angular-strap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-strap/2.1.2/angular-strap.tpl.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular-route.js"></script> <!-- Angular routing -->
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.9.0.js"></script> <!-- Bootstrap UI -->
<!-- Load JS from local -->
<script src="js/vendor/bootstrap.min.js"></script> <!-- bootstrap -->
<script src='js/vendor/fullcalendar/lib/moment.min.js'></script> <!-- calendar moment -->
<!--script src='js/vendor/fullcalendar/lib/jquery.min.js'></script> <!- - jquery -->
<script src='js/vendor/fullcalendar/fullcalendar.js'></script> <!-- fullcalendar -->
<script src='js/vendor/fullcalendar/lang/es.js'></script> <!-- fullcalendar esp-->
就像虛擬警察:有人幫助我:(
您可以提供您的js加載順序? jquery需要在引導之前加載。如果你提供你的js加載順序,它會幫助 – dhavalcengg
沒問題的朋友,那裏是 – Giquo