feat(offline compiler): a replacement for tsc that compiles templates

see #7483.
This commit is contained in:
Alex Eagle
2016-04-28 21:57:16 -07:00
parent 33e53c9a59
commit 78946fe9fa
17 changed files with 743 additions and 23 deletions

View File

@ -0,0 +1,14 @@
import {Component, Injectable} from 'angular2/core';
import {FORM_DIRECTIVES} from 'angular2/common';
import {MyComp} from './a/multiple_components';
@Component({
selector: 'basic',
templateUrl: './basic.html',
directives: [MyComp, FORM_DIRECTIVES],
})
@Injectable()
export class Basic {
ctxProp: string;
constructor() { this.ctxProp = 'initial value'; }
}