Modal Factory
Simple AngularJS factory for the creation of modal dialogs. This factory returns a modal dialog, based on a config object passed on each creation.
The created service just provides to simple functions:
- turnMeOn: activates the modal
- turnMeOff: deactivates the modal
How to use:
- update the modalfactory.js to your AngularJS app name, in case you use other than "app"
- inject it as a controller dependency
- instantiate the service as a new scope variable
- use the modal functions where you please in the controller :)