Skip to content

[Angular] Application developer can access type-safe props when implementing Components #1003

@jacobsimionato

Description

@jacobsimionato

Consider the choice picker implementation for each of the three renderers:

In angular, we have:

  displayStyle = computed(() => this.props()['displayStyle']?.value());

While in react, it's like:

          if (props.displayStyle === 'chips') {

It'd be nice of Angular provided a type safe way to access the props, even including deeply nested props etc. This makes it way easier to develop Components. It affects the API, so let's do it as soon as we can.

@ava-cassiopeia @gspencergoog

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1sprint readyThis issue should be included in sprint planning views

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions