UNPKG

@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

14 lines (12 loc) 493 B
<%_ viewFields = detailView.filter(x=>!x.exclusiveRequiredWith); let viewGrp = detailViewGrp; let view='detail'; let largePicture=false; for (let field of viewFields) { let fn = field.fieldName; let ft = field.type; if (ft === 'AngularSelector') { continue; } let fieldObj = {field, fn, ft, ref_link: true,}; %> <div *ngIf="detail && showFields.includes('<%-fn%>')"><%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %> </div><%}%>