I'm having trouble creating a CRUD with Angular 4. I'm trying to create a form by putting the value of an object in it so I can edit it.
Here's an example:
<form #editar="ngForm" (ngSubmit)="lerClientes()">
<div>
<label for="nome">Nome:</label>
<input type="text" id="nome" name="nome" (ng-model)="cliente.nome"/>
<label for="sobrenome">Sobrenome:</label>
<input type="sobrenome" id="sobrenome" name="sobrenome" (ng-model)="cliente.sobrenome"/>
</div>
<div>
<button type="submit"> botao</button>
</div>>
</form>