...

/

Challenge: Toggle Visibility Functionality

Challenge: Toggle Visibility Functionality

Complete the challenge of implementing the toggle visibility functionality in a component.

In the initial code setup provided below, a simple Angular application with one component (toggle-visibility) has been created. You are required to implement the following tasks:

  1. Add the component into the main module file, app.module.ts.

  2. Implement the toggle visibility functionality.

  3. Render the toggle-visibility component in the main application.

Expected output

  1. When the application is run, you should see a simple “Toggle Visibility” button, like this:

Access this course and 1400+ top-rated courses and projects.