Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project not working properly #2

Open
tonywr71 opened this issue Sep 6, 2017 · 1 comment
Open

Project not working properly #2

tonywr71 opened this issue Sep 6, 2017 · 1 comment

Comments

@tonywr71
Copy link

tonywr71 commented Sep 6, 2017

I've just downloaded the code, run an npm install, and then executed ng serve. It compiled and ran the app. In Chrome, I browsed to http://localhost:4200 and it showed the main page. I hit F12, then I clicked on "Open Modal With Template" and it has failed with "ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'modal fade show'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"

I'm not sure where to go to fix this?

@hggeorgiev
Copy link
Owner

Hello @tonywr71 . This is a tad bit strange.

Try to wrap the place in the code where this error occurs in a setTimeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants