I\'m having a problem with trying to use Angular\'s *ngFor
and *ngIf
on the same element.
When trying to loop through the collection in th
Angular v2 doesn't support more than one structural directive on the same element.
As a workaround use the
element that allows you to use separate elements for each structural directive, but it is not stamped to the DOM.
{{log(thing)}}
{{thing.name}}
( before Angular v4) allows to do the same but with a different syntax which is confusing and no longer recommended
{{log(thing)}}
{{thing.name}}