Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created April 10, 2015 13:08
Show Gist options
  • Save DrMabuse23/7406b51fcaa5aae09eea to your computer and use it in GitHub Desktop.
Save DrMabuse23/7406b51fcaa5aae09eea to your computer and use it in GitHub Desktop.
Angular ES6 Webstorm Component
import {Component, Template, If} from 'angular2/angular2';
@Component({
selector: '$NAME'
})
@Template({
inline: `<div *if="$NAME">{{$NAME}}</div>`,
directives: [If]
})
export class $NAME {
$NAME:string;
constructor() {
this.$NAME = $NAME;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment