To navigate to a route conditionally based on the data fetched, you can use a Route Resolver along with the _____ Router Event.

  • Activate
  • Deactivate
  • Navigate
  • Resolve
To navigate to a route conditionally based on the data fetched, you can use a Route Resolver along with the Resolve Router Event. The Resolve event allows you to fetch data before navigating to the route.

How can you ensure that an Observable sequence retries a specific number of times after encountering an error before finally failing?

  • catchError with a custom error handler
  • finalize with a custom completion handler
  • repeatWhen with a custom completion handler
  • retryWhen with a custom error handler
To ensure that an Observable sequence retries a specific number of times after an error, you can use the retryWhen operator with a custom error handler.

The _____ decorator allows you to access route parameters within an Angular component.

  • ActivatedRoute
  • ParamInjector
  • RouteParam
  • RouterParam
The ActivatedRoute decorator allows you to access route parameters within an Angular component and retrieve data from the URL.

What type of data binding is used when you want to send data from a component's class to its template?

  • Event binding
  • Interpolation binding
  • One-way data binding
  • Two-way data binding
In Angular, Two-way data binding is used when you want to send data from a component's class to its template, allowing data to flow in both directions between the component and the template.

When you want to bind a DOM event to a method in your component class, you use event binding.

  • event binding
  • interpolation binding
  • property binding
  • two-way binding
In Angular, event binding is used to bind a DOM event to a method in your component class, allowing you to respond to user interactions.

To test directives with dependencies, Angular provides the _______ class which allows you to inject dependencies and spy on their usage.

  • ComponentFixture
  • TestBed
  • TestBedDependency
  • TestBedStub
To test directives with dependencies, Angular provides the TestBed class, which allows you to configure testing modules and inject dependencies.

In NgRx, the _____ property of an action usually contains additional information or context.

  • Action
  • Meta
  • Payload
  • Type
In NgRx, the Meta property of an action usually contains additional information or context that can be helpful when processing the action.

In template-driven forms, form controls are automatically created by Angular using the _____.

  • FormControlDirective
  • FormsModule
  • NgModel
  • TemplateDirective
In template-driven forms, form controls are automatically created using the NgModel directive.

In Angular, the _____ class is used to create form controls in reactive forms.

  • FormBuilder
  • FormControl
  • FormGroup
  • ReactiveFormsModule
In Angular, the FormControl class is used to create form controls in reactive forms.

You are building an e-commerce application and want to ensure that product details are fully loaded before navigating to the product detail page. Which feature of Angular's router would you use to achieve this?

  • Angular Lifecycle Hooks
  • Route Guards
  • Router Interceptors
  • Router Resolvers
To ensure that product details are fully loaded before navigating, you can utilize Router Resolvers. A resolver can fetch data asynchronously before activating a route, ensuring that the data is available when the route is displayed.