In these article, we discuss how to create modal using directive in the Angular.
1) Static modal open using directive.
In the above example in a button click, we called “staticModal.show()” it means we have an open directive name which has an id “#staticModal” we have bsModal directive in ngx-bootstrap module. we just assign value to it for an open popup. In modal div, we have written “bsModal #staticModal="bs-modal"
”
2) Nested Popup open using the directive.
In the above example, we have created in each popup with another popup open function on the click button. Below is the running embedded code for popup open & close.
Next article we discuss on how to trigger events using directive open modal in angular.
Spread the love
1