Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import {Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>Mon premier Component</h1>
<app-child></app-child>
`,
styles: [`
h1 {
color : red;
}
`],
encapsulation: ViewEncapsulation.Native
})
export class AppComponent {
title = 'app works!';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment