What’s the difference between @ViewChild and @ContentChild?

Question

Angular 2 provides @ViewChild, @ViewChildren, @ContentChild and @ContentChildren decorators for querying a component’s descendant elements.
What’s the difference between the first two and the latter two?

0
ajeetsinghaassak@gmail.com 3 weeks 0 Answers 26 views 0

Leave an answer

Browse
Browse