You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use app.service to get/set global loading state.
in app.html I print the loadState, {{loadState}} which supposed to be bound to appState.get().loadState
export class App{
constructor(public appState: AppState) {
this.appState.set('loadState', false); //initial value.
}
get loadState() {
return this.appState.get().loadState;
}
}
however I'm getting this error: EXCEPTION: Expression 'loading: {{loadState}} in App@0:23' has changed after it was checked. Previous value: 'false'. Current value: 'true' in [loading: {{loadState}} in App@0:23]
the error is clear, but I can't figure out how to fix it? am I using app.service the wrong way?
The text was updated successfully, but these errors were encountered:
sorry this may sound super rule but I'm closing long standing issues and refactoring the codebase. If you run into this problem again feel free to open another issue
Hi, I'm trying to use
app.service
to get/set global loading state.in
app.html
I print the loadState,{{loadState}}
which supposed to be bound toappState.get().loadState
app.ts
however I'm getting this error:
EXCEPTION: Expression 'loading: {{loadState}} in App@0:23' has changed after it was checked. Previous value: 'false'. Current value: 'true' in [loading: {{loadState}} in App@0:23]
the error is clear, but I can't figure out how to fix it? am I using app.service the wrong way?
The text was updated successfully, but these errors were encountered: