Skip to content

Instantly share code, notes, and snippets.

@karthikchintala1
Created July 1, 2017 06:10
Show Gist options
  • Save karthikchintala1/ef6bd35acaf59a0c7802a79cdbe56493 to your computer and use it in GitHub Desktop.
Save karthikchintala1/ef6bd35acaf59a0c7802a79cdbe56493 to your computer and use it in GitHub Desktop.
Added custom attribute directive in app.component.ts template
import { Component } from '@angular/core';
Component({
selector: 'my-app',
template: `
<div>
<h2>Hello {{name}}</h2>
<div colorMe>color text</div>
</div>
`,
})
export class AppComponent {
name:string;
constructor() {
this.name = `Angular! v${VERSION.full}`
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment