Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.addElet= function(){
- ------
- $state.go('state1',{OBJ: OBJ});
- }
- myApp.run(function($rootScope, $modal,$state) {
- $rootScope.$on('$stateChangeStart', function(event, toState,toParams) {
- if (toState.name == 'addPopup') {
- $modal.open({
- templateUrl : 'add.html',
- controller : 'ModalCtrler',
- backdrop: 'static',
- keyboard: false,
- });
- event.preventDefault();
- }
- }
- }
- <a ui-sref="addPopup({OBJ: OBJ})">
- <button type="button" class="btn btn-add pull-right">ADD</button>
- </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement