如何将下一个值显示为<mat-h​​int>

时间:2019-07-14 11:05:48

标签: angular typescript

我正在写一个多语言的管理页面,但我遇到了问题。每个元素都应有一个时间戳记(创建日期),但需要在迭代中显示为提示。

list_of_contacts_title: "List of Contacts"
list_of_contacts_uis_timestamp: "12-09-2019"
contract_type: "Contract type"
name: "Name"
department: "Department"
<ng-container *ngFor="let item of array | keyvalue">
  <p *ngIf=" type(item.value) == 'object' && item.key != 'data'" id="header">{{item.key}}</p>
<mat-form-field class="example-full-width"  *ngIf=" type(item.value) != 'object' " style="margin-left: 550px; padding-bottom: 50px;" >

  <input matInput placeholder="{{item.key}}"  [(ngModel)]="item.value"  name=" " (change)="save(item.key, item.value)">

</mat-form-field>
  <br>
  <app-iteration-multilingual (arrayChange)="updateArray($event)" [array]="item.value" *ngIf="type(item.value) == 'object'"></app-iteration-multilingual>
</ng-container >

0 个答案:

没有答案