UI Bootstrap modal window (service) refreshes page while opening - angularjs

I am using UI bootstrap modal window to show a form which takes data from a controller and passes on to modal window. But when window pops up, the controller is getting called and all the service calls are being made again, eventually reloading the page.
Can someone help on how to prevent this reloading? Basically activate() function is called again after the modal window is popped up.
Thanks,
-/Sammi
P.S. I am newbie to angular. Please help.

I actually fixed it. Now I created a new directive from Modal window and passed the controller instance to it.
Thanks,
-/Sammi

Related

is there onload event for the angular $uibModal

is there an event for angular $uibModal like onload to show a loader before the modal gets shown or loaded specially if the modal takes time to get loaded.
Explain
I need to show a loader for the user while waiting the modal file gets download from the server.

bug with modal window and desktop widget

(sorry my english!)
I use a modal window within a Tabview's page.
Check this little playground example.
Open the modal window, go to Second page, and return to First page. How can i solve this problem with the opened modal window? I need switch to other pages, return to the modal window's page, and close the modal window.
I've been trying to figure this out. The Widget Browser application, from Qooxdoo website have the same problem, with the Window page example.
Thanks.
this little modification work fine
Playground example

Fading modals in Angular

I am using the most excellent sexy Bootstrap modal for Angular, but have encountered a problem.
I am opening a new modal immediately after the sexy full-screen modal closes. However, the residue of the sexy modal - the background - remains until the new modal closes. Is there a way to hook an event up to the sexy modal that fires when the modal actually finishes closing? I don't want to set up a timer, that would be a bit dirty...
Any ideas greatly appreciated.

Ionic Modal Appear on load

Morning all,
I've started a new project based on the Ionic Side Menu starter app. How do I get the login form modal to appear on load rather than on menu click?
Many thanks
Add:
$scope.modal.show();
Somewhere in your controller, after the $scope.modal value has been defined.

How to close the popover when clicked somewhere in the window using angularjs?

I am using angularjs for my front-end. I have created some popover windows. I want the popover window to be disappear when I click somewhere in the browser window. How can I do that using angularjs. Thanks in advance

Resources