Company: Cepheid_4_feb_MCQ
Difficulty: medium
Anita is developing an Angular application and wants to apply conditional logic based on the value of an attribute of an HTML element. Which of the following statements is/are true about attribute binding in Angular? 1. Attribute binding is used to set the value of an attribute of an HTML element. 2. Attribute binding is two-way only, which means changes to the attribute value in the HTML element will also update the component's property. 3. The square brackets syntax is used for attribute binding in Angular. 4. Attribute binding can be used to apply conditional logic based on the value of an attribute. 1, 2, and 3 2, 3, and 4 1, 2, and 4 1, 3, and 4 Alice is developing an Angular application that has multiple components and she wants to use different styles for each component. She wants to understand how to apply styles to Angular components and how to use different strategies for style encapsulation. Which of the following statements about component styles in Angular is correct? Comp