You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@
275
275
|267|[Can you give an example of built-in validators?](#can-you-give-an-example-of-built-in-validators)|
276
276
|268|[How do you optimize the performance of async validators?](#how-do-you-optimize-the-performance-of-async-validators)|
277
277
|269|[How to set ngFor and ngIf on the same element?](#how-to-set-ngfor-and-ngif-on-the-same-element)|
278
-
|270|[](#)|
278
+
|270|[What is host property in css?](#what-is-host-property-in-css)|
279
279
|271|[](#)|
280
280
|272|[](#)|
281
281
|273|[](#)|
@@ -4337,6 +4337,16 @@
4337
4337
4338
4338
**[⬆ Back to Top](#table-of-contents)**
4339
4339
4340
-
270. ### ?
4341
-
4340
+
270. ### What is host property in css?
4341
+
The :host pseudo-class selector is used to target styles in the element that hosts the component. Since the host element is in a parent component's template, you can't reach the host element from inside the component by other means.
4342
+
For example, you can create a border for parent element as below,
0 commit comments