Skip to content

Instantly share code, notes, and snippets.

@DevWellington
Last active June 16, 2018 23:47
Show Gist options
  • Save DevWellington/a7781744593785a951523e4c8fb0ba4a to your computer and use it in GitHub Desktop.
Save DevWellington/a7781744593785a951523e4c8fb0ba4a to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core'
@Component({
selector: 'app-first',
templateUrl: './myfirst-component.html',
// template: `<h1>{{ title }}</h1>`,
// template: `<h1>{{ title }}</h1>
// <p> Welcome, {{ user.name }}!</p>`
})
export class MyFirstComponent {
// title: string = 'My Star Wars Component'
// user = { name: 'Luke Skywalker' }
constructor() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment