Skip to content

Instantly share code, notes, and snippets.

@larryparitosh
Created May 31, 2017 10:10
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 larryparitosh/cd6bdb6ebdac4d92ee9a9b0a71b751ae to your computer and use it in GitHub Desktop.
Save larryparitosh/cd6bdb6ebdac4d92ee9a9b0a71b751ae to your computer and use it in GitHub Desktop.
Basic angular component
// 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