Skip to content
0:00 / 0:00

#angular#viewchild#contentchild

Better concepts, less code in Angular 2 - Victor Savkin and Tobias Bosch

AngularConnect

23K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Victor Savkin and Tobias Bosch
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

21K views11 years ago1 recommendation

Web developmentVue, Svelte, Angular and others

Victor Savkin and Tobias Bosch explain core Angular 2 concepts including content projection, ViewChild, and ContentChild.

AngularConnect – The official European Angular conference 2015 – angularconnect.com Premier sponsor: rangle.io Learn how Angular 2 makes hard problems simple by introducing new powerful concepts. We will show it by building a complex widget in Angular 2 that will demonstrate features like content projection, querying for directives and asynchronous control flow.

Why it's here

1 person recommends this

What people say. Recommended for its clear explanation of the differences between ViewChild and ContentChild in Angular.

mithun_daaon Stack Overflow • Recommends

On “What's the difference between @ViewChild and @ContentChild?”

This video from Angular Connect has excellent info about ViewChildren, ViewChild, ContentChildren and ContentChild link to this video @Component({ template: ` <my-widget> <comp-a/> </my-widget> ` }) class App {} @Component({ selector: 'my-widget', template: `<comp-b/>` }) class MyWidget {} From my-widget 's perspective, comp-a is the ContentChild and comp-b is the ViewChild . CompomentChildren and ViewChildren return an iterable while the xChild return a single instance.