Skip to content

fix(loading): when using the full screen loader in ngOnInit it fails#682

Merged
emoralesb05 merged 3 commits into
developfrom
feature/full-loading-det-fix
Jun 10, 2017
Merged

fix(loading): when using the full screen loader in ngOnInit it fails#682
emoralesb05 merged 3 commits into
developfrom
feature/full-loading-det-fix

Conversation

@emoralesb05

@emoralesb05 emoralesb05 commented Jun 9, 2017

Copy link
Copy Markdown
Contributor

it complains in change detection, so we have to explicitly call a change detection cycle when rendering it

Test Steps

  • Go to loading demo
  • See full screen demo working again

General Tests for Every PR

  • ng serve --aot still works.
  • npm run lint passes.
  • npm test passes and code coverage is not lower.
  • npm run build still works.
Screenshots or link to CodePen/Plunker/JSfiddle

it complains in change detection, so we have to explicitly call a change detection cycle when rendering it
@emoralesb05 emoralesb05 added the bug label Jun 9, 2017
@emoralesb05 emoralesb05 modified the milestone: RC 1 Jun 9, 2017
…omponent

since when its created in a hook life cycle, the change detection cycle has finished so it complains
this should be done by developers by calling detectChanges directly, since we dont want to call detectChanges every time the loader is registered
@emoralesb05 emoralesb05 merged commit 349d108 into develop Jun 10, 2017
@emoralesb05 emoralesb05 deleted the feature/full-loading-det-fix branch June 10, 2017 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant