In what scenario would you use the fragment property of the NavigationExtras object?
- For routing configuration
- For smooth scrolling
- To handle query parameters
- To manage lazy loading
The fragment property of the NavigationExtras object is used for smooth scrolling to a specific location on a page after navigation.
Loading...
Related Quiz
- In a real-time data streaming application built with Angular, you want to ensure that multiple components receive the same data from an observable without creating multiple subscriptions. What kind of observable would you use?
- How can you simulate user interactions like clicking a button in an Angular test?
- What is the main advantage of using a Subject over a standard Observable?
- In Angular, a service is typically injected into a component's constructor through the component's _____.
- What is the purpose of testing a custom directive in Angular?