--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
<img src="{{Image + image.Name}}" class="tn" width="200" height="160" />
<img [src]="Image + image.Name" class="tn" width="200" height="160" />
Best guess: ImageUrl is being set to a string instead of an array of IIcon objects. I suggest you start by using a break point or console.log call to log out what "data" is inside your subscribe function.Note: you should not use subscribe in your constructor. This will cause a memory leak as it will never be unsubscribed from. Instead, set a member variable to the Observable returned by this.getIcons() and then use that member variable with the async operator in your template. Something like:this.Images = this.getService.getIcons();Then, in your template:<li *ngFor="let image of Images | async"><img src="{{Image + image.Name}}" class="tn" width="200" height="160" /></li>
On Thu, Jun 14, 2018 at 10:27 PM jamester go <gfeli...@gmail.com> wrote:
--Hi as mentioned in the subject i've been encountering this error after fetching thesaid data using Http.getPlease see image below for the images in the code
ERROR:
ERROR Error: Cannot find a differ supporting object 'http://localhost:60055/Asset/' of type 'string'. NgFor only supports binding to Iterables such as Arrays.Hope you can help me with this :)
Good Day
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 angular+unsubscribe@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
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 angular+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ang...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ang...@googlegroups.com.