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.

Angular component - separate bindings to inputs and outputs #15913

Open
@radek-anuszewski

Description

@radek-anuszewski

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (see above))

Current behavior:

Today, with 1.5 version and greaters, I can declare bindings as:

bindings: {
  value: "<",
  name: "@",
  onChange: "&",
},

Expected / new behavior:

To be closer to Angular 2+, and to make code more intuitive with new trends about inputs and outputs, it can be separated to inputs and outputs:

inputs: {
  value: "<",
  name: "@",
},
outputs: {
  onChange: "&",
},

Angular version: 1.6.4

Browser: [all]

Anything else:

It may be even join internally by component to bindings, so it won't be a breaking change I think, but for Angular's users it will make a difference with more separation and clarification.
Thank you in advance for considering this feature!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions