Comments (3)
Sorry, haven't tried AoT yet. Not sure why AoT would have a problem with this being a variable.
But, if function works then go ahead and use it this way. Looking at the code you've provided I think you just need to fix the function implementation to call the factory instead of returning it. Something like this (notice the little braces at the end of the function):
export function appStoreFactory () {
return createAppStoreFactoryWithOptions({ reducers, additionalMiddlewares: [], debug: true })();
}
from angular2-redux.
Is this still relevant?
from angular2-redux.
the current upgraded project supports Aot Build now. lujakob may have a try though. see the following screenshot for build with AOT set to true.
from angular2-redux.
Related Issues (16)
- Wondering if I should use ng2-redux? HOT 9
- Error in actions.ts HOT 3
- Package usage - dist with .ts files HOT 5
- The new "select" method doesn't work well with the dev tools extension HOT 5
- Document and add example for using "select" HOT 8
- rxjs version 6 compatibility HOT 2
- how to use middleware HOT 4
- Install of version 5.0.2 does not work
- v5+ changes interface HOT 1
- Documention of "unsubscribe"? HOT 1
- How did you fix this? HOT 1
- debug flag question HOT 2
- Update siblings peerDependencies requirements HOT 3
- How to include the package? HOT 4
- Argument of type '{}' is not assignable to parameter of type 'ReducersMapObject'. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-redux.