@hicoder/angular-cli
Version:
Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res
28 lines (23 loc) • 709 B
text/typescript
import { Component, OnInit, Input, ViewChild } from '@angular/core';
import { <%-SchemaName%>ListViewComponent } from './<%-schemaName%>-list-view.component';
({
<%- include(`/widgets/list-view/component.template.custom.ts`)%>
})
export class <%-SchemaName%><%-ComponentClassName%>Component extends <%-SchemaName%>ListViewComponent implements OnInit {
public fields: any = {<% for (let field of briefView) {%><%
if (field.promotionTitle) {%>
title: '<%-field.fieldName%>',<%
}%><%
if (field.promotionDetails) {%>
details: '<%-field.fieldName%>',<%
}%><%
}%>
};
constructor() {
super();
}
override ngOnInit() {
super.ngOnInit();
}
ngOnChanges() {}
}