15 lines
532 B
15 lines
532 B
5 years ago
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container">
|
||
|
|
||
|
<mat-form-field>
|
||
|
<input matInput id="name" name="name" type='text'
|
||
|
required
|
||
|
ngModel #name="ngModel" placeholder="请输入资料库名称">
|
||
|
</mat-form-field>
|
||
|
|
||
|
<div class="btn">
|
||
|
<button type="submit" class="savebtn" mat-raised-button color="primary" [disabled]='form.invalid'>确定</button>
|
||
|
<button type="button" mat-button (click)="onNoClick()" mat-raised-button>取消</button>
|
||
|
</div>
|
||
|
|
||
|
</form>
|