When using the OnPush strategy, a component will be checked if a new object reference is passed to one of its ________.
- Inputs
- Methods
- Outputs
- Variables
When using the OnPush change detection strategy in Angular, a component will be checked if a new object reference is passed to one of its inputs. This means that the component will only re-render if there's a change in the input values. The OnPush strategy is an optimization to reduce unnecessary checks and re-renders.
Loading...
Related Quiz
- You notice that a particular component in your application re-renders too often, causing performance issues. What steps can you take to optimize it?
- What is the primary purpose of the Validators class in Angular's Reactive Forms?
- You have a requirement to dynamically load a component at runtime based on user actions. Which tools or concepts in Angular would you utilize to accomplish this?
- To enable strict mode for a new Angular application, ensuring stricter type-checking and other stricter checks, you would use the ng new command with the ______ flag.
- What is the primary purpose of the ControlValueAccessor interface in Angular?