0
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, to be able to edit it.
Following 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>
You could edit your question and add the object structure ?
– NoobSaibot
Davidson you could post the typescript of your component?
– Lucas Brogni