0
votes
0answers
59 views

angularjs modal with data binding

i have to create a modal window for adding information to current controller. i used pop modal window using modalService. i'm just passing basic information. $scope.saveCustomer = function ...
1
vote
1answer
56 views

How to close Angular UI Modal from anywhere

I am using the Angular UI bootstrap modal dialog and create it within a service: myApp.factory('ModalService', ['$modal', function($modal) { return { trigger: function(template) { ...
0
votes
3answers
1k views

Testing Modal Controller: unknown provider: $modalInstanceProvider <- $modalInstance, TypeError: Attempted to assign to a readonly property

I am a bit new to AngularJs. I am using Angular UI bootstrap (0.10.0) for modal implementation. I am getting the following errors while testing a modal controller using AngularJs 1.2.7: TypeError: ...
0
votes
1answer
126 views

How to share data exclusively between a directive and a factory in AngularJS?

I want to build a modal directive with an Async API to open the modal. What I was thinking about is a factory that returns me the API object that manipulates the modal directive. Using Angular-UI ...