区块链客户端开发与 React 入门
一、Angular 区块链客户端组件与服务
-
事务表单组件(TransactionFormComponent)
- 模板结构 :AppComponent 模板包含两个子组件,TransactionFormComponent 是一个三控件表单,有“ADD TRANSACTION”按钮。使用 Angular 响应式表单 API,通过
[formGroup]="transactionForm"指令绑定表单模型。
html <h2>New transaction</h2> <form class="add-transaction-form" [formGroup]="transactionForm" (ngSubmit)="enqueueTransaction()"> <input type="text" name="sender" autocomplete="off" placeholder="Sender" formControlName="sender"> <input type="text" name="recipient" autocomplete="off" placeholder="Recipient" formControlName="recipient"> <input type="number" name="amount" autocomplete="off" placeholder="Amount" formCont
- 模板结构 :AppComponent 模板包含两个子组件,TransactionFormComponent 是一个三控件表单,有“ADD TRANSACTION”按钮。使用 Angular 响应式表单 API,通过
超级会员免费看
订阅专栏 解锁全文
32

被折叠的 条评论
为什么被折叠?



