hggeorgiev / ngx-redux-ui-management-recipes Goto Github PK
View Code? Open in Web Editor NEWRecipes for managing the UI layout of an application using Redux in Angular
License: MIT License
Recipes for managing the UI layout of an application using Redux in Angular
License: MIT License
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?
I like the examples in this project a lot, but have not been able to upgrade the source to current Angular/Ngrx. Going thru the article up to the modals section fails with the following error:
ERROR in node_modules/@ngrx/effects/src/bootstrap-listener.d.ts(1,20): error TS2305: Module '"../../../@angular/core/core"' has no exported member 'OpaqueToken'.
...
Cloning the complete repo and trying to upgrade it ends up with the following errors:
ERROR in Metadata version mismatch for module
/Users/tim/angular/redux/ngx-redux-ui-management-recipes/node_modules/@ng-bootstrap/ng-bootstrap/index.d.ts,
found version 4, expected 3,
...
I have a repo here which contains my work to get these samples up and running.
Are there any plans to upgrade the article/code base? It seems like a very worth-wile project to me.
A couple of comments on this the disqus to the pluralSight article too
export const getOpenedModalName = (state: State) => state.openedModalName;
in all instances "Cannot read property 'openedModalName' of undefined"
when called from this.openedModalName$ = store.select(fromRoot.getLayoutOpenedModalName);
and subscribed to with async.
Error: Expression has changed after it was checked. Previous value: 'CD_INIT_VALUE'. 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 ?
Everything's looking good for me except the handleOpenModal method, which perhaps requires a different lifecycle-hook init?
Really appreciate this guide, Hristo!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.