you cant bind this object in UI,becouse Dom doesnt know this keyword coming
from html
On Friday, December 9, 2016 at 5:12:59 AM UTC+5:30, Dawg wrote:
>
> Hello,
>
> I searched the internet and still not able to resolve my problem and could
> use some help. I also attached a image of console output.
>
> this line of code works:
> {{ this.projectList[2]?.prj_name }}
>
> *I like to iterate through the entire data set and tried different
> variation and its just not working and could use a little help with this
> problem:*
> <ul>
> <li *ngFor="let test of this.projectList">
> {{test.prj_name}}
> </li>
> </ul>
>
>
> *component.ts*
> this.projectList = this._bootStrapIncident.bootStrapIncidentMethod()
> .subscribe(
> data1 => {
> this.projectList = data1;
> console.log(this.projectList);
> },
>
>
> *service.ts*
>
> return this._http
> .post(this.userUrl, options)
> .map((res: Response) => res.json())
> .catch (this.handleError);
>
>
> Image of output
>
>
> <https://lh3.googleusercontent.com/-SJJaou9KWgk/WEnu36SggJI/AAAAAAAAA_U/fF7QFe8Eyi0nrBbUwW-WfaTDUfTaxGQbgCLcB/s1600/array1.PNG>
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular" 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.