Hi Sander I'm still on this issue now i'm using angular 5.0 still not
seeing the data returned, But I know data is returning because I use *ngfor
on <li> tag it repeating the number of data in my database Pls I need help
on this I have been on it for the past 3 weeks
On Friday, November 24, 2017 at 3:51:40 AM UTC+1, Sander Elias wrote:
>
> Hi Olebanji,
>
> Your code doesn't show me if you are injecting http, or httpclient.
> HttpClient does the json unrwapping.
> Given what I know of java backends, you might need to unwrap it a bit
> more. I think what you get is something like:
>
> interface javaResponse {
> Category: {
> id: number;
> name: string;
> }[]
> }
>
> that's not the actual code, but it should get you going.
>
> 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.