infomedialtd / angular2-redux-example Goto Github PK
View Code? Open in Web Editor NEWExample project for using pure Redux with Angular 2 and TypeScript
License: MIT License
Example project for using pure Redux with Angular 2 and TypeScript
License: MIT License
node_modules/angular2-redux/dist/app-store-factory.ts(2,70): error TS2307: Cannot find module 'redux'.
node_modules/angular2-redux/dist/app-store-factory.ts(3,34): error TS2307: Cannot find module 'redux-thunk'.
I am debating between Redux and the Observable version of it https://github.com/ngrx/store
I am leaning towards the https://github.com/ngrx/store as I love the fact it uses pure Rxjs and we can pipe async into the view...
but, I like the middleware and eco system aroundd Redux...
decisions decisions..... mmm
u'r 2 cents?
Regards,
Sean
Checkout the Ultimate Angular 2 Boorstrap App: @ http://ng2.javascriptninja.io
Source@ https://github.com/born2net/ng2Boilerplate
pleeeease update to rc.6...
tx
Sean
Hi old friend... any luck with rc.x?
I had spent so far 5 hours and got some progress but still has issues with loading everything in jspm version 0.17, wondering if you had any luck with ng2 rc.x, they broke alot of things :/
regards
Sean
It would be awesome if you include your favorite workflow as far as debugging, do you use live sever or express? which arguments do you use... with gulp? or do you use ts watch or others?
tx as always
seen
I tried to include the code in my project and getting an error of
dispatching (dispatch) {
dispatch(_this.requestUsers());
_this._http.get("" + BASE_URL)
.map(function (result) { return result.json(); })
.…
browser_adapter.js:85 EXCEPTION: Error during instantiation of AdminComponent!
ORIGINAL EXCEPTION: Error: Actions must be plain objects. Use custom middleware for async actions.
in AdminComponent
basically that async calls must go through the middleware... have you seen this before?
regards
basically
Is it possible to add reducers at runtime (e.g. for lazy loading)?
It's better for minification since enums become numbers in transpiled code. It's also more TypeScript-y
Hi,
when running
http://angular2-redux-example.surge.sh
in Chrome I get
EXCEPTION: Error during instantiation of AppStore! (AdminComponent -> AppStore).BrowserDomAdapter.logError @ index.min.js:6
index.min.js:6 ORIGINAL EXCEPTION: TypeError: window.devToolsExtension is not a function
br
Magnus
Hi,
I'm not able to use the chrome extension, it throws an error on AppStore instantiation
EXCEPTION: Error during instantiation of AppStore! (MainMenuComponent -> AppStore).
so I guess I'm not implementing it right
My appStoreFactory:
const appStoreFactory = createAppStoreFactory({ gameReducer }, [window.devToolsExtension ? window.devToolsExtension() : f => f]);
(don't know much about Middlewares, implementing Redux for the first time)
I saw you use that extension in a gif on another question, could you please show the right way to do so?
(I think it would be great if you enable it in the demo so people can play arround)
Thanks!
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.