Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $modal.open({
- 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>',
- controller: ModalChooseProjectCtrl
- });
- var ModalChooseProjectCtrl = function($scope, $modalInstance) {
- $scope.ok = function() {
- $modalInstance.close($scope.chosenProject);
- };
- $scope.cancel = function() {
- $modalInstance.dismiss('cancel');
- };
- };
- Error: [$compile:tplrt] Template for directive 'modalBackdrop' must have exactly one root element. template/modal/backdrop.html
- http://errors.angularjs.org/1.2.15-build.2378+sha.9335378/$compile/tplrt?p0=modalBackdrop&p1=template%2Fmodal%2Fbackdrop.html
- Error: [$compile:tplrt] Template for directive 'modalWindow' must have exactly one root element. template/modal/window.html
- http://errors.angularjs.org/1.2.15-build.2378+sha.9335378/$compile/tplrt?p0=modalWindow&p1=template%2Fmodal%2Fwindow.html
- <div modal-backdrop="" class="ng-scope"></div>
- <div modal-window="" index="0" animate="animate" class="ng-scope"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement