Skip to content

if directive inside foreach directive #101

@jbruni

Description

@jbruni

Consider this template:

<li *foreach="{{ this.items }}">
  <a href="{{ item.url }}">{{ item.name }}</a>
  <p *if="{{ item.foo }}">bar</p>
</li>

While item.url and item.name render as expected... the item within the *if is always undefined.

I'm not sure if this is expected, or a bug, or how to make it work as intended. Any help is appreciated.

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy