Thread with 2 posts

jump to expanded post
Angular question Toggle visibility

Aaaah I never get how the let-item thing without explicitly binding it works in angular templates!

Like, <ng-template #tpl let-myName="name"> I get - it'll pick up `name` and my template has an `myName`.

But if I <ng-template #tpl let-name>, I always think it should just pick up `name` and put it to a local `name` - but it kinda sorta sometimes works, but mostly not. What am I missing?

#angular

Open thread at this post