Thanks for your note Sander.

... but I thought I was already doing that in my subscribe method? If not 
here where would you suggest? Also I have complete control over formatting 
the service call response so I can format the text any way necessary if you 
think it would be easier to solve this on the service end....

Here it is:

onGet() {
    this.dataService.getAllOrders()
    .subscribe(
      (data: any[]) => this.results=data, (for testing, on this line I used 
(I thought the "data: any[] " code tells Angular that data is typed to 
expect any array)
      (error) => console.log(error)
    );
  }

On Saturday, December 16, 2017 at 5:52:20 AM UTC-7, Sander Elias wrote:
>
> Hi Rich,
>
> I think that the data you get from your service is a string. Perhaps you 
> should JSON.parse it before trying to use ngFor on it.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to