πŸ“Š Angular
Q. Which of the following is a correct way to include CSS styles in an Angular component?
  • (A) Using the styles or styleUrls metadata properties
  • (B) Using inline style attribute only
  • (C) Importing CSS in main.ts
  • (D) Using <style> tag inside component class
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using the styles or styleUrls metadata properties

Explanation: Angular components use styles or styleUrls in @Component metadata to apply CSS.

Explanation by: Mr. Dubey
Angular components use styles or styleUrls in @Component metadata to apply CSS.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate