A dialogue box is called modal when it restricts the other functionality of the page until the dialogue box has been closed.
Here is the code for opening a simple modal popup using ‘modals’ in angularjs.
first create a simple HTML template and call a function on a button click in which the modal will get open:
- <html>
- <div class="maiWidth">
- <h2 class=“adminhead”>Admin List</h2>
- <div class="col-sm-3 columns">
- <button type="" class="btn grn-btn" ng-click=“Confirm()”>Confirm Admin
- </button>
- </div>
- </div>
- </html>
In the above code I have called a confirm function on a button click.
Then add this script for the modal template like this without html tag.
- Read full Blog at: Showing a Popup Window using Modals in Angularjs
Being an effective forum, here you can also post & look for various programming queries along with their solutions including c, java, php, Android Developer Forum etc.
No comments:
Post a Comment