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:
Add the component into the main module file,
app.module.ts
.Implement the toggle visibility functionality.
Render the toggle-visibility component in the main application.
Expected output
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.