Skip to content

request| feat(Router): Add decorators @Resolved and @Params聽#9787

Closed

Description

@PatrickJS
interface Resolved(remap?: string) {}
interface Params(remap?: string) {}

class About {
  @Resolved() data: any
  @Params() params: any
}

It would simply be

screen shot 2016-07-02 at 11 35 57 pm

Activity

  1. changed the title [-]feat(Router): Add decorators @Resolved and @Params[/-] [+]request| feat(Router): Add decorators @Resolved and @Params[/+] on Jul 22, 2016
  2. added
    featureLabel used to distinguish feature request from other issues
    on Jul 22, 2016
  3. added this to the Backlog milestone on Jan 23, 2018
  4. eduardoalcantara commented on Feb 5, 2019

    @eduardoalcantara

    I would very much appreciate that!

  5. atscott commented on Mar 1, 2022

    @atscott
    Contributor

    Closing. There's already a simple enough way to do this and we don't need to expand the public API for it.

    class About {
      data = this.route.snapshot.data;
      params = this.route.snapshot.params;
    
      constructor(private readonly route: ActivatedRoute) {}
    }
    
  6. angular-automatic-lock-bot commented on Apr 1, 2022

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

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

Metadata

Metadata

Assignees

Labels

area: routerfeatureLabel used to distinguish feature request from other issuesfreq1: low

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions