Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $modal.open({
  2. template: '<div class="modal-body">Choose current project<button class="btn btn-primary" ng-click="ok()">OK</button> <button class="btn btn-warning" ng-click="cancel()">Cancel</button></div>',
  3. controller: ModalChooseProjectCtrl
  4. });
  5.  
  6. var ModalChooseProjectCtrl = function($scope, $modalInstance) {
  7. $scope.ok = function() {
  8. $modalInstance.close($scope.chosenProject);
  9. };
  10.  
  11. $scope.cancel = function() {
  12. $modalInstance.dismiss('cancel');
  13. };
  14. };
  15.  
  16. Error: [$compile:tplrt] Template for directive 'modalBackdrop' must have exactly one root element. template/modal/backdrop.html
  17. http://errors.angularjs.org/1.2.15-build.2378+sha.9335378/$compile/tplrt?p0=modalBackdrop&p1=template%2Fmodal%2Fbackdrop.html
  18.  
  19.  
  20. Error: [$compile:tplrt] Template for directive 'modalWindow' must have exactly one root element. template/modal/window.html
  21. http://errors.angularjs.org/1.2.15-build.2378+sha.9335378/$compile/tplrt?p0=modalWindow&p1=template%2Fmodal%2Fwindow.html
  22.  
  23. <div modal-backdrop="" class="ng-scope"></div>
  24. <div modal-window="" index="0" animate="animate" class="ng-scope"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement