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:

How to use:

  1. update the modalfactory.js to your AngularJS app name, in case you use other than "app"
  2. inject it as a controller dependency
  3. instantiate the service as a new scope variable
  4. use the modal functions where you please in the controller :)
Selected option: