Skip to content

@Input and @Output syntax is not consistent #5487

Closed

Description

@rkj

In the dart file having this:
@Input('foo-value') fooValue;
does work and I can use it like:
<my-cmp [foo-value]="foo">
but this:
@Output('foo-event') fooEvent;
does not work, it must be:
@Output('fooEvent') fooEvent;

I would love if both annotations would handle the html casing as it makes much easier to copy paste properties/events from component code into html.

Activity

  1. vicb commented on Dec 3, 2015

    @vicb
    Contributor

    This should be fixed when we fix #4923

  2. vicb commented on Dec 11, 2015

    @vicb
    Contributor

    closed by #5765

  3. 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.

  4. 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