@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
46 lines (43 loc) • 1.56 kB
HTML
<label>{{ inputData.stepTitle }}</label>
<div *ngIf="list.length > 0"><% for (let view of widgetDef.views) {%>
<ng-template [ngIf]="isShowListView('<%-view%>')">
<app-<%-schemaName%>-list-view-widget-<%-view%>
<%- include(`/widgets/list/view-component.inputs.html`)%>
>
</app-<%-schemaName%>-list-view-widget-<%-view%>>
</ng-template>
<%}%>
</div>
<div class="add-area">
<a class="read-more" (click)="onEmbeddedAdd()">Add a new <%-schemaCamelName%> <i class="fas fa-plus-square" title="Add"></i> </a>
<div *ngIf="isAdding">
<div class="modal-back">
<div class="modal-content modal-front">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="btn-close" aria-label="Close" (click)="onEmbeddedViewDone(false)">
</button>
</div>
<div class="modal-body">
<app-<%-schemaName%>-edit [initData]="parentData" [initDataAllowChange]="parentDataAllowChange"
[embeddedView]="true" (done)="onEmbeddedViewDone($event)"></app-<%-schemaName%>-edit>
</div>
</div>
</div>
</div>
<div *ngIf="isEditing">
<div class="modal-back">
<div class="modal-content modal-front">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="btn-close" aria-label="Close" (click)="onEmbeddedViewDone(false)">
</button>
</div>
<div class="modal-body">
<app-<%-schemaName%>-edit [id]="parentId" [embeddedView]="true"
(done)="onEmbeddedViewDone($event)"></app-<%-schemaName%>-edit>
</div>
</div>
</div>
</div>
</div>