Angular Modal Service Samples

Samples for the only Angular Modal Service you'll ever need.


A Simple Yes/No Modal

This sample shows a Bootstrap Modal with the options 'Yes' and 'No'.

It demonstrates how to show a Bootstrap Modal, how to show a modal and how to retrieve data from the modal.

Show Yes No

{{yesNoResult}}

See the code that makes up this sample:


A Complex Modal

This more complicated modal contains a form, showing how the modal template can be customised. It also has a controller with data injected by the caller and returns more complex data.

Show Complex

{{complexResult}}

See the code that makes up this sample:


A Custom Modal

This sample shows how you can use any kind of modal, not just Bootstrap modals.

Show Custom

{{customResult}}

See the code that makes up this sample: