Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Latest commit

 

History

History
51 lines (23 loc) · 1.35 KB

README.md

File metadata and controls

51 lines (23 loc) · 1.35 KB

az Modal

NPM version Build Status Coveralls github Github file size

Modal service for AngularJS using Bootstrap

This is a very simple and minimal but handy service written to let you call a bootstrap modal with a template and a controller and pass some arguments to the controller.

So basically you can write:

azModal.show({
    templateUrl: '/app/product/product-detail.html',
    controller : 'productDetailCtrl',
    locals: {product:product}

});

And a Bootstrap modal will be displayed with product injected into decencies of productDetailCtrl controller.

Demo: https://azerafati.github.io/az-modal/