What is the difference between viewchild and contentchild?
Answer / Uday Kumar Ojha
viewChild is used to query for a child view element, while contentChild is used to query for a child content element. The main difference lies in that viewChild queries for the direct child of the current component, while contentChild can query for descendants.
| Is This Answer Correct ? | 0 Yes | 0 No |
How AngularJS is different from other JavaScript Framework?
What is a function decorator?
What is ng bind in angular?
How to load select box during page initialization using AngularJS?
What is difference between $cookies and $cookieStore service?
Which is the most stable version of angular?
How to redirect to 404 or other path if the path does not exist in angular 2?
What are the differences between service and factory methods?
What is the new in angular 7?
What is the difference between an order and a directive?
What is angular libraries?
What is the difference between link and compile in angular.js?