Hi Nick,

I made this service yesterday, based on UI Bootstrap, hold on...

Ken

Op donderdag 4 juni 2015 05:13:06 UTC+2 schreef Nick:
>
> What's the best way to set up some sort of ModalService so that in my 
> controllers all I need to do is to do something like the following:
>
> ModalService.show({
>     title: 'title',
>     text: 'Are you sure?',
>     buttons: [{
>         text: 'Yes' ,
>         handler: function(){
>         alert('yes clicked');
>         }
>     },{
>         text: 'No' ,
>         handler: function(){
>         alert('no clicked');
>         }
>     }]
> })
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to