Skip to content

Instantly share code, notes, and snippets.

@angularistanbul
Created September 13, 2018 19:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angularistanbul/8f1f7f1615dc3d1decdeffc350624535 to your computer and use it in GitHub Desktop.
Save angularistanbul/8f1f7f1615dc3d1decdeffc350624535 to your computer and use it in GitHub Desktop.
@Component({
selector: 'my-app',
template: `<hello></hello>`
})
export class AppComponent {
name = 'Angular';
}
@Component({
selector: 'hello',
template: `<h1>Hello {{app.name}}!</h1>`
})
export class HelloComponent {
constructor(public app: AppComponent) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment