diff --git a/modules/angular2/core.js b/modules/angular2/core.js index e1fa618601..19d6774686 100644 --- a/modules/angular2/core.js +++ b/modules/angular2/core.js @@ -1,7 +1,7 @@ export * from './src/core/annotations/annotations'; export * from './src/core/annotations/visibility'; export * from './src/core/compiler/interfaces'; -export * from './src/core/annotations/template_config'; +export * from './src/core/annotations/template'; export * from './src/core/application'; export * from './src/core/compiler/compiler'; diff --git a/modules/angular2/src/core/annotations/annotations.js b/modules/angular2/src/core/annotations/annotations.js index b02d6d6b85..b0a4e0882a 100644 --- a/modules/angular2/src/core/annotations/annotations.js +++ b/modules/angular2/src/core/annotations/annotations.js @@ -1,6 +1,5 @@ import {ABSTRACT, CONST, normalizeBlank, isPresent} from 'angular2/src/facade/lang'; import {ListWrapper, List} from 'angular2/src/facade/collection'; -import {TemplateConfig} from './template_config'; @ABSTRACT() export class Directive { @@ -38,7 +37,6 @@ export class Directive { export class Component extends Directive { //TODO: vsavkin: uncomment it once the issue with defining fields in a sublass works - template:any; //TemplateConfig; lightDomServices:any; //List; shadowDomServices:any; //List; componentServices:any; //List; @@ -48,7 +46,6 @@ export class Component extends Directive { constructor({ selector, bind, - template, lightDomServices, shadowDomServices, componentServices, @@ -57,7 +54,6 @@ export class Component extends Directive { }:{ selector:String, bind:Object, - template:TemplateConfig, lightDomServices:List, shadowDomServices:List, componentServices:List, @@ -73,7 +69,6 @@ export class Component extends Directive { lifecycle: lifecycle }); - this.template = template; this.lightDomServices = lightDomServices; this.shadowDomServices = shadowDomServices; this.componentServices = componentServices; diff --git a/modules/angular2/src/core/annotations/template_config.js b/modules/angular2/src/core/annotations/template.js similarity index 68% rename from modules/angular2/src/core/annotations/template_config.js rename to modules/angular2/src/core/annotations/template.js index edd6e95878..0e1b23eb86 100644 --- a/modules/angular2/src/core/annotations/template_config.js +++ b/modules/angular2/src/core/annotations/template.js @@ -1,25 +1,31 @@ import {ABSTRACT, CONST, Type} from 'angular2/src/facade/lang'; import {List} from 'angular2/src/facade/collection'; -export class TemplateConfig { +export class Template { url:any; //string; inline:any; //string; directives:any; //List; formatters:any; //List; - source:any;//List; + source:any;//List