Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Demand {
- id: number;
- code: number;
- note: string;
- public constructor( init?: Partial<Demand> ) {
- Object.assign(this, init);
- }
- }
- Quando for fazer o parse
- this.demand = new Demand(this.demandForm.value);
- Beneficio
- -não precisa pegar valores de cada campo do formulario
- -economia de linha
RAW Paste Data