In Angular, the _____ decorator is used to bind a property in the child component to receive a value from the parent component.
- @ContentChild
- @Input
- @Output
- @ViewChild
In Angular, the @Input decorator is used to bind a property in the child component, allowing it to receive a value from the parent component. This is commonly used for passing data from a parent to a child component.
Loading...
Related Quiz
- Your application requires a custom directive that modifies the structure of the DOM based on user roles. Which type of directive should you consider creating?
- To dynamically create a component and attach it to a specific location in the view, you'd use the ______ along with ComponentFactoryResolver.
- When setting up routes in an Angular application, which property in the route configuration determines the component that should be displayed?
- When you want to replace a specific part of your component's view with another component dynamically, which of the following would you use?
- The ControlValueAccessor interface provides a bridge between Angular's form controls and a native element in the DOM. This bridge includes methods like writeValue, registerOnChange, and ________.