Where is "myObj" defined?

On Sun, Jul 17, 2016, 14:17 p. stephen w <p.stephenwi...@gmail.com> wrote:

>  This line produces an error on 'myObj':
>                        Cannot read property 'mykey' of undefined.
>              <div *ngIf="myObj['mykey']">woot</div>
>
> It sounds like NG2 will not iterate over objects, and the only way around
> it is to write a custom pipe, or put a function on the component to parse
> the object.
> Do I have the current and correct understanding on this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@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 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to