almost 5 years ago
Angular UI Bootstrap provides $uibModal service to create modal windows. Before using this you need to create a template, controller and reference them with $uibModal service.
It has only one method i.e. open(options).
$uibModal's open function options parameter includes:
The open method returns an instance of modal. It is an object with the these properties:
close(result): It is function type and used to close a modal with result.
dismiss(reason): It is used to dismiss a modal and of type function.
result: It is of type promise and resolved when a modal is closed and rejected when a modal is dismissed.
The scope is associated with the content of modal has:
$close: It is a function that is used to close a modal.
$dismiss: used to dismiss a modal.
You can see the demo here: http://plnkr.co/edit/rPt10oTutaUD5Jj8GYyX?p=preview
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using