ngDialog API is used to provide Popup and Model window for Angulajs application. This API has open() method to open dialog window or creates new dialog instance.
.open (options):
This method is used to open dialog window, creates new dialog instance on each call. It accepts options object as the only argument.
ngDialog.open({
template: ‘url’,
className:’cssStyle’,
scope: $scope, ---> pass current controller scope object to dialog
showClose: false,
overlay: true,
closeByEscape: false,
});
Other angular related blogs :
No comments:
Post a Comment