2015-02-05 13:08:05 -08:00
|
|
|
import {ABSTRACT, CONST, Type} from 'angular2/src/facade/lang';
|
2014-09-19 16:38:37 -07:00
|
|
|
|
2015-03-17 19:22:13 +00:00
|
|
|
/**
|
2015-03-20 21:11:58 +00:00
|
|
|
* @publicModule angular2/annotations
|
2015-03-17 19:22:13 +00:00
|
|
|
*/
|
2015-02-12 14:44:59 +01:00
|
|
|
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>;
|
2015-02-12 14:44:59 +01:00
|
|
|
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({
|
2014-09-19 16:38:37 -07:00
|
|
|
url,
|
2014-11-11 17:33:47 -08:00
|
|
|
inline,
|
2014-09-19 16:38:37 -07:00
|
|
|
directives,
|
|
|
|
formatters,
|
2015-02-12 14:44:59 +01:00
|
|
|
source,
|
|
|
|
locale,
|
|
|
|
device
|
2014-10-02 21:48:46 -07:00
|
|
|
}: {
|
2014-11-21 21:19:23 -08:00
|
|
|
url: string,
|
|
|
|
inline: string,
|
2014-09-19 16:38:37 -07:00
|
|
|
directives: List<Type>,
|
|
|
|
formatters: List<Type>,
|
2015-02-12 14:44:59 +01:00
|
|
|
source: List<Template>,
|
|
|
|
locale: string,
|
|
|
|
device: string
|
2014-10-02 21:48:46 -07:00
|
|
|
})
|
|
|
|
{
|
|
|
|
this.url = url;
|
2014-11-11 17:33:47 -08:00
|
|
|
this.inline = inline;
|
2014-10-02 21:48:46 -07:00
|
|
|
this.directives = directives;
|
|
|
|
this.formatters = formatters;
|
|
|
|
this.source = source;
|
2015-02-12 14:44:59 +01:00
|
|
|
this.locale = locale;
|
|
|
|
this.device = device;
|
2014-10-02 21:48:46 -07:00
|
|
|
}
|
|
|
|
}
|