Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created October 12, 2016 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/530f87976752eaef5c9b928f25513b87 to your computer and use it in GitHub Desktop.
Save wKoza/530f87976752eaef5c9b928f25513b87 to your computer and use it in GitHub Desktop.
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