Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-repeat and event delegation #1568

@Keyamoon

Description

@Keyamoon

Any event handler inside the ng-repeat loop should be binded to a parent element, for better performance.

Here's an example:

<ul>
    <li ng-repeat="item in items" ng-click="go(item)">item.caption</li>
</ul>

It would be awesome if angular could automatically recognize this pattern and bind the event to a parent element (ul for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions