I believe the *ngFor goes on the li and not the ul.
On Wed, Dec 7, 2016, 22:02 Dawg <[email protected]> wrote:
> Hello,
>
> I'm missing something and I'm hoping someone here can help.
>
> Data is pulled from a database:
> [{"prj_name":"TestProject One"},{"prj_name":"TestProject
> Two"},{"prj_name":"Ice cream"},{"prj_name":"project4"},{"prj_name":"test
> project5"}]
>
> This works:
> {{ this.projectList[2]?.prj_name }}
>
> But this doesn't work:
> <ul *ngFor="let test of this.projectList">
> <li>{{test?.prj_name}}</li>
> </ul>
>
> What am i doing wrong?
>
>
> --
> 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.
>
--
Lucas Lacroix
Computer Scientist
Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
781-774-2293
--
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.