【发布时间】:2018-08-02 10:28:08
【问题描述】:
我想在我的项目中添加一个字段,就像我选中复选框然后它在 angular 5 的帮助下存储在我的数据库中一样。所以我不知道如何使用 angular 5 对其进行编码。
index.component.html
<div class="billable">
<div class="bilable-label">
<label class="ct-form-label">Billable</label>
</div>
<div class="billable-checkbox">
<input type="checkbox" [name]="billable" (click)="Billable()" />
</div>
</div>
<button mat-button class="ct-submit mat-button" (click)="submit()" [disabled]="entryTimeForm.invalid || isRequestLoading || !currentTimeEntry.projectId">
Done
</button>
所以我想当我点击完成按钮然后检查我的数据库中的存储时,我需要在index.component.ts 中使用什么样的代码
【问题讨论】:
标签: javascript angular angular5