Remove un-used `contact` attribute
parent
a6d883f68e
commit
a036ca0a93
|
@ -9,7 +9,6 @@ import { Subscription } from 'rxjs';
|
|||
styleUrls: ['./app.component.css'],
|
||||
})
|
||||
export class AppComponent implements OnInit, OnDestroy {
|
||||
contact: Contact;
|
||||
form: FormGroup;
|
||||
|
||||
private subscription: Subscription;
|
||||
|
@ -20,7 +19,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
this.subscription = this.service
|
||||
.loadContact()
|
||||
.subscribe((data: Contact) => {
|
||||
this.contact = data;
|
||||
this.form = this.createForm(data);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue