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

Expression has changed after it was checked #140

Open
trickpattyFH20 opened this issue Apr 6, 2017 · 1 comment
Open

Expression has changed after it was checked #140

trickpattyFH20 opened this issue Apr 6, 2017 · 1 comment
Labels

Comments

@trickpattyFH20
Copy link

trickpattyFH20 commented Apr 6, 2017

Description of the Issue and Steps to Reproduce:
using the amCalendar pipe results in the following error:

ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '37 minutes ago'. Current value: '38 minutes ago'.
at viewDebugError (core.es5.js:8661) [angular]
at expressionChangedAfterItHasBeenCheckedError (core.es5.js:8639) [angular]
at checkBindingNoChanges (core.es5.js:8803) [angular]
at checkNoChangesNodeInline (core.es5.js:12228) [angular]
at checkNoChangesNode (core.es5.js:12202) [angular]
at debugCheckNoChangesNode (core.es5.js:12776) [angular]
at debugCheckRenderNodeFn (core.es5.js:12716) [angular]
at Object.eval [as updateRenderer] (AdvisorComponent.html:202) [angular]
at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:12698) [angular]
at checkNoChangesView (core.es5.js:12062) [angular]
at callViewAction (core.es5.js:12381) [angular]
at execEmbeddedViewsAction (core.es5.js:12359) [angular]
at checkNoChangesView (core.es5.js:12061) [angular]
at callViewAction (core.es5.js:12381) [angular]

Did you search for duplicate issue? [Yes / No]

  • yes

Please describe the issue and steps to reproduce, preferably with a code sample / plunker:
In the view, use calendar pipe with date format param, like this:
{{ person.date | amCalendar: dateFormat }}

Ensure your issue is isolated to angular2-moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer.

Environment:

Please answer the following questions:

  • angular2-moment 1.3.3
  • Angular version? 4.0.0 (we have been experiencing the same issue since angular 2.2.*, this pipe has always given us errors, regardless of angular version)
  • TypeScript version? 2.2.0
  • moment version? 2.17.1
  • Are you using moment-timezone? No
  • Are you using the angular-cli? Yes, version 1.0.0-rc.1
  • Using Rollup/Webpack/System.js/Ionic/similar? using angular cli's webpack
@urish urish added the bug label Apr 17, 2018
@andrewhickman
Copy link

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

No branches or pull requests

3 participants