Skip to content

docs(router): use pipe in activatedRoute example - #29752

Closed
frederikprijck wants to merge 1 commit into
angular:masterfrom
frederikprijck:patch-2
Closed

frederikprijck wants to merge 1 commit into
angular:masterfrom
frederikprijck:patch-2

Conversation

@frederikprijck

@frederikprijck frederikprijck commented Apr 7, 2019 •

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Copying the example, mentioned at Activated Route (https://angular.io/api/router/ActivatedRoute), to Stackblitz doesn't compile: https://stackblitz.com/edit/angular-x7pbeb?file=src%2Fapp%2Fhello.component.ts

That's because the example does not use .pipe.

Issue Number: N/A

What is the new behavior?

I've updated the example to include pipe.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Copying the example, mentioned at Activated Route (https://angular.io/api/router/ActivatedRoute), to Stackblitz doesn't compile: https://stackblitz.com/edit/angular-x7pbeb?

That's because the example does not use .pipe.

I've updated the example to include `pipe`.
@frederikprijck
frederikprijck requested a review from a team April 7, 2019 08:28
@frederikprijck

Copy link
Copy Markdown
Contributor Author

It looks like the CI errors are not related to this PR.

@ngbot ngbot Bot modified the milestone: needsTriage Apr 7, 2019
@gkalpak gkalpak added target: patch This PR is targeted for the next patch release type: bug/fix action: merge The PR is ready for merge by the caretaker labels Apr 7, 2019

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thx 👍

It would be great if someone wanted to convert these hard-coded code examples to snippet extracts from actual mini-apps (as most code examples).

@gkalpak gkalpak added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Apr 7, 2019
@gkalpak

gkalpak commented Apr 7, 2019

Copy link
Copy Markdown
Member

merge-assistance: This is a docs only change and I am using my global approval super-power.

@frederikprijck

frederikprijck commented Apr 7, 2019 •

Copy link
Copy Markdown
Contributor Author

@gkalpak as mentioned offline, ill take a stab at reworking this to use a miniapp in a follow up pr so the example is compiled!

@IgorMinar IgorMinar closed this in e682b44 Apr 9, 2019
IgorMinar pushed a commit that referenced this pull request Apr 9, 2019
Copying the example, mentioned at Activated Route (https://angular.io/api/router/ActivatedRoute), to Stackblitz doesn't compile: https://stackblitz.com/edit/angular-x7pbeb?

That's because the example does not use .pipe.

I've updated the example to include `pipe`.
PR Close #29752
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants