Use a function that returns Object.keys to enumerate the keys. That's what
I've done.

On Sat, Jul 30, 2016, 10:14 p. stephen w <[email protected]> wrote:

> ngFor only works on arrays and iterables - github-angular-issues
> <https://github.com/angular/angular/issues/2246#issuecomment-167276115>
>
> So what is the correct way to iterate over an object and display certain
> keys?
>
> Example:
>       woot = {bought:true, returned:'no', superBrandId:true,
> partnerBrand:false}
>
> Output:
>     <p>bought</p>
>     <p>superBrandId</p>
>
> --
> 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 [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.
>

-- 
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 [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.

Reply via email to