m-e-conroy / angular-dialog-service

A complete AngularJS service with controllers and templates for generating application modals and dialogs for use with Angular-UI-Bootstrap and Twitter Bootstrap
MIT License
618 stars 228 forks source link

how to set it up in an existing project ? #109

Closed PManager1 closed 9 years ago

leal0t commented 9 years ago

I would also like to know how to set this up in an existing project.

m-e-conroy commented 9 years ago

I will be adding setup & usage explanations when I get some time.

Right now you can bower install the service then include the dialogs.min.js file in your application. Depending on your usage of Angular-Translate you may or may not want to also include dialogs-default-translations.min.js

Add dialogs.main to your module then inject the service dialogs into your controller, service, etc.

To call one of the services for example: dialogs.notify('My Modal Header','My Modal Content');