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