-
-
Save wKoza/5191a1d652f63b6dd495878cb0889a13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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