Skip to content

Instantly share code, notes, and snippets.

View mbao01's full-sized avatar
🌍
Global Village

Ayomide Bakare mbao01

🌍
Global Village
View GitHub Profile
@mbao01
mbao01 / ContentProjection.ts
Created March 30, 2017 22:03 — forked from pietmichal/ContentProjection.ts
Angular 2.x - Template Outlet vs Content Projection
@Component({
selector: 'app',
template: `
<h1>Angular's content projection and lifecycle example</h1>
<app-content>
<app-nested-component></app-nested-component>
</app-content>
`,
})
export class App {}
@pietmichal
pietmichal / ContentProjection.ts
Last active March 30, 2017 22:03
Angular 2.x - Template Outlet vs Content Projection
@Component({
selector: 'app',
template: `
<h1>Angular's content projection and lifecycle example</h1>
<app-content>
<app-nested-component></app-nested-component>
</app-content>
`,
})
export class App {}