Files
Angular-Docs-Cn/modules/angular2/src/core/annotations/template.js
T

42 lines
839 B
JavaScript
Raw Normal View History

import {ABSTRACT, CONST, Type} from 'angular2/src/facade/lang';
2015-03-17 19:22:13 +00:00
/**
* @publicModule angular2/angular2
*/
export class Template {
2014-11-21 21:19:23 -08:00
url:any; //string;
inline:any; //string;
directives:any; //List<Type>;
formatters:any; //List<Type>;
source:any;//List<Template>;
locale:any; //string
device:any; //string
2014-10-02 21:48:46 -07:00
@CONST()
2014-09-25 16:53:32 -07:00
constructor({
url,
inline,
directives,
formatters,
source,
locale,
device
2014-10-02 21:48:46 -07:00
}: {
2014-11-21 21:19:23 -08:00
url: string,
inline: string,
directives: List<Type>,
formatters: List<Type>,
source: List<Template>,
locale: string,
device: string
2014-10-02 21:48:46 -07:00
})
{
this.url = url;
this.inline = inline;
2014-10-02 21:48:46 -07:00
this.directives = directives;
this.formatters = formatters;
this.source = source;
this.locale = locale;
this.device = device;
2014-10-02 21:48:46 -07:00
}
}