Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created April 10, 2015 13:08

Revisions

  1. DrMabuse23 created this gist Apr 10, 2015.
    15 changes: 15 additions & 0 deletions Webstorm es Component
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    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;
    }
    }