Closed jasonhjohnson closed 6 years ago
I'm trying to load json from a remote source and it's not loading in the content.
My code:
ngOnInit() { this.lookupService.getLookups().subscribe( (lookups) => { console.log(lookups); // this returns valid json this.data = JSON.parse(JSON.stringify(lookups)); }, (error) => console.log('Error retrieving lookups: ' + error)); }
Any help is appreciated.
Just had to wait to initialize the control until after data was available
I'm trying to load json from a remote source and it's not loading in the content.
My code:
Any help is appreciated.