2015-12-08 2 views
0

Я пытаюсь использовать datepicker Angularjs ui boostrap в портале backbase, но он не работает. Тот же код работает за пределами портала backbase. Моего HTML кодAngularjs ui bootsrap datepicker в портале backbase не работает

<button type="button" class="btn btn-default" style="border:0px" 
      uib-datepicker-popup="{{format}}" ng-model="dt" 
      is-open="status.opened" min-date="minDate" show-weeks="false" show-button-bar="false" 
      max-date="maxDate" datepicker-options="dateOptions" 
      date-disabled="disabled(date, mode)" ng-required="true" 
      close-text="Close" ng-click="open($event)"> 
       <i ><img data-ng-src="{{imageDir}}/calendar.png"/></i></button> 

Моего JS код:

$scope.today = function() { 
$scope.dt = new Date(); 
}; 
$scope.today(); 
$scope.refresh = function(){ 
$scope.dt = new Date(); 
} 

$scope.maxDate = new Date(new Date().setDate(new Date().getDate())); 
$scope.minDate = new Date(new Date().setDate(new Date().getDate()-7)); 

$scope.open = function($event) { 
    $scope.status.opened = true; 
}; 

$scope.setDate = function(year, month, day) { 
    $scope.dt = new Date(year, month, day); 
    }; 

$scope.dateOptions = { 
formatYear: 'yy', 
startingDay: 1 
}; 



$scope.status = { 
opened: false 
}; 

Я включил boostrap.min.css в моем HTML и у меня есть угловая Ui-самозагрузка JS в папке поддержки Launchpad. Может кто-нибудь объяснить, как использовать угловые компоненты uu boostrap в портале Backbase? Заранее спасибо.

ответ

-1
 Can you please paste your whole HTML and JS files here. This would help to understand what dependencies your are loading. 

     Can you please check if you are referencing the launchpad require conf.. 

     <script src="../../../launchpad/conf/require-conf.js"></script> 

    Also in JS loading the launchpad angular config as below 

    define([ "jquery", 
      "angular",     
      "launchpad/support/angular/angular-ui-bootstrap", 
      "launchpad/lib/ui"* 
      ], function($,angular){ 
      "use strict";