coatue-oss / react2angular

The easiest way to embed React components in Angular 1 apps.
Other
544 stars 109 forks source link

How to provide redux store store? #118

Open s-v-d opened 4 years ago

s-v-d commented 4 years ago

<Provider store={store}><Router>...</Router></Provider>

How to provide store using this npm module? My routing is angularjs.

intricatecloud commented 4 years ago

You can pass in $ngRedux as the store:

react2angular(MyComponent, undefined, ['$ngRedux'])
...
<Provider store={this.props.$ngRedux}>
...
CodeguruEdison commented 3 years ago

You can pass in $ngRedux as the store:

react2angular(MyComponent, undefined, ['$ngRedux'])
...
<Provider store={this.props.$ngRedux}>
...

do we have any working example?