Question from the Angular - Fundamentals test

Navigate to the new-gadgets route in Angular

Easy

Once the Router is injected into GadgetComponent, how do I use it to navigate to the new-gadgets route?

Author: LéoStatus: PublishedQuestion passed 1089 times
Edit
2
Community Evaluations
developer avatar
No
26/06/2024
NW : this.router.navigateByUrl('new-gadgets');