Skip to content

Angular.io documentation - Reattaching a detached component - has wrong example #25495

@cmer4

Description

@cmer4

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

currently here: https://angular.io/api/core/ChangeDetectorRef#reattaching-a-detached-component the example provided in the last section is just a duplicate of previous section (detach change detector)

Expected behavior

the section about reattaching change detection should feature relevant code sample

Minimal reproduction of the problem with instructions

go here: https://angular.io/api/core/ChangeDetectorRef#reattaching-a-detached-component
observe duplicate sample and not relevant sample

What is the motivation / use case for changing the behavior?

confusing documentation. even if this is a minor issue.

Environment

N/A

Browser:

  • [ x] Chrome (desktop) version 68
  • Chrome (Android) version XX
  • Chrome (iOS) version XX
  • Firefox version XX
  • Safari (desktop) version XX
  • Safari (iOS) version XX
  • IE version XX
  • Edge version XX

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions