Skip to content

(click) not work properly #3665

Closed
Closed

Description

@olegstan

Hello. I have html like that.
<li><a class="btn btn-link btn-small current" (click)="sort($event, 'position')"><span>Some text</span></a></li>

When I click on span there no effect. Click not work on child tags. Where magic?

Activity

  1. alexpods commented on Aug 15, 2015

    @alexpods

    Use (^click).

    From the docs here:

    By default, angular only listens to the element on the event, and ignores events which bubble. To listen to bubbled events (as in the case of clicking on any child) use the bubble option ((^event) or on-bubble-event) as shown below.

    Also read this article.

  2. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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