Answer the question
In order to leave comments, you need to log in
How to fix $uibModalInstanse error?
<form method="POST" accept-charset="UTF-8" enctype="multipart/form-data" name="" novalidate="novalidate" class="rg-form">
</form>
blogApp.controller('headerController', ['$scope', '$uibModal', 'article', function($scope, $uibModal, article){
$scope.$watch('csrf', function(){
article.csrfToken = $scope.csrf;
})
/**
* create an article modal
*
* @param
* @return
*/
$scope.createModal = function($event){
$event.preventDefault();
var modalInstance = $uibModal.open({
templateUrl: '/view/blogCreateForm.htm',
controller: 'createFormController'
});
modalInstance.result.then(function(){
// ok
},
function(){
// cancel
});
}
}]);
//
blogApp.controller('createFormController', ['$scope', '$uibModalInstance', 'article', function($scope, $uibModalInstance, article){
}]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question