Created
May 31, 2017 10:10
-
-
Save larryparitosh/cd6bdb6ebdac4d92ee9a9b0a71b751ae to your computer and use it in GitHub Desktop.
Basic angular component
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 from Angular module | |
import { Component } from '@angular/core'; | |
// Component decorator | |
@Component({ | |
selector: 'app', | |
templateUrl: './app.component.html', // your html will be here | |
styleUrls: ['./app.component.css'] | |
}) | |
// Component Class | |
export Class AppComponent { | |
title = "Hello World" // this will be rendered in the above template file | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment