Adding Bootstrap to your Angular application is an easy process. Just write the following command in your Angular CLI. It will add bootstrap into your node_modules folder.
ng add @ng-bootstrap/ng-bootstrap
Approach: Import NgbModal module in the TypeScript file of the corresponding component, and then we have to write code for the popup model by using the above module in the HTML file of the corresponding component.
Syntax:
Example: modal-basic.ts
Now, we have to use ng-template to construct the model which will create a popup.
Example: modal-basic.html
Output:
👁 Image
👁 Image