Skip to content

Instantly share code, notes, and snippets.

@nathan-lapinski
Created May 23, 2018 10:12
Show Gist options
  • Save nathan-lapinski/7aaf1865f807507bea9fbb5a1e9f295e to your computer and use it in GitHub Desktop.
Save nathan-lapinski/7aaf1865f807507bea9fbb5a1e9f295e to your computer and use it in GitHub Desktop.
A simple Angular component
import { Component } from ‘@angular/core’;
@Component({
selector: ‘pokemon-home’,
template: `
<div><h1>{{name}}</h1></div>
`
})
export class PokemonHomeComponent {
name: string = ‘Pokemon, go!’;
constructor(){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment