【发布时间】:2018-11-30 17:42:45
【问题描述】:
我正在使用 angular 5 和 spring Boot。我有一个项目列表,我想通过模态显示它们的详细信息。这意味着如果我单击任何项目,模式将包含该项目的详细信息。 有人知道如何实现吗?
这是我的清单:
<mat-card>
<mat-card-content>
<div class="form-group">
<input type="text" style="width: 110px;" placeholder="Search" [(ngModel)]="motCle" aria-label="Search">
<button (click)="chercher()"> <span class="glyphicon glyphicon-search"></span></button>
</div>
<mat-list>
<mat-list-item style="color: black;" *ngFor="let p of pans">
<h3 mat-line >{{p.id}}- {{p.nom}}</h3>
<span class="clickable" style="color: #cccccc;" class="glyphicon glyphicon-eye-open clickable"></span>
</mat-list-item>
<div style="float: left" class="container">
<ul style="background-color: transparent;" class="nav nav-pills">
<li [ngClass]="{'active':i==currentpage}" *ngFor="let p of pages; let i=index">
<a style="color: #cccccc;" class="clickable" (click)="gotoPage(i)">{{i}}</a>
</li>
</ul>
</div>
</mat-list>
</mat-card-content>
</mat-card>
【问题讨论】:
标签: angular spring-boot