| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1× 2× | 'use strict';
exports.componentTemplate = function (name) {
return `
import {${name}Controller} from './${name}.controller';
export class ${name}Component implements ng.IComponentOptions {
public bindings: any;
public controller: any;
public templateUrl: string;
constructor() {
this.bindings = {};
this.controller = ${name}Controller;
this.templateUrl = "${name}.template.html";
}
}
`
};
|