Implementing the Modal Functionality

Learn how to add a DOM element for our modal window and how to add/change the title to the modal view.

So far, we have implemented a modal view but haven’t added any functionality to it.

DOM element

If we want to display modal windows, we’ll need a region to show them. Let’s add a DOM element for our modal dialogs in the following code in line 7:

Get hands-on with 1200+ tech skills courses.