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
* Adds .idea (intellij IDE) to .gitignore
* Ports the library to TypeScript, and adds (basic) generic support
* Examples now work with Typed Stores, and Angular 2 Beta 1
* Upgraded tsd to typings
* Updates/prunes dependencies adds postinstall for typings to the example
* Purge typings
* Fixes typings postinstall when used as a dependency
* Updates typings and excludes tmp from tsconfig
* Fix reflect-metadata issue
* Fix counter and dev tools
* Remove lib folder
* Update counter to load ng2-redux from src
* Update webpack config
* Ports the library to TypeScript, and adds (basic) generic support
* Update peer dependencies
* Lock down versions
* Adds redux-logger typings/dependency
* Tests are now TypeScript
* Remove old service code from provider.ts
* Left ng-redux.ts as own file
* Fix exports from src/index.ts
* Remove extra 'reflect-metadata' from counter example
* chore(tests) Add typings for mocha and chai
* add chai to dev dep
* update node version for tests
* Observable Store and official redux typings
* Remove js version of connector spec
* Add ability to provide a custom compare function to .select
* Fix path to index.d.ts
* Update contributors on package.json
* Cleanup example
* Update readme with .select details
* Change provider to use NgRedux class directly
* Add alias for @Inject('ngRedux')
To prevent breaking changes from people using @Inject('ngRedux'), setup
an alias so that code using this style of injection will still work.
* refactor(connector) Merge ng-redux and connector
Refactored connector so all of the ng-redux.ts functionality was moved
into it, then renamed it.
* Updated tests, and cleaned up the provide factory.
* Fix type issue for action creator
* chore(readme) Update bootstrap
* No longer need to register NgRedux directly as a provider
* docs(ngRedux): Add docs to public api methods (angular-redux#35)
* chore(package): Update repo details (angular-redux#36)
* chore(ci): Setup circleci (angular-redux#37)
* chore(ci): Setup circleci
* chore(ci): Change badge to be circleci (angular-redux#38)
* Chore ci changes (angular-redux#39)
* chore(ci): remove .travis.yml
* chore(ci): Change node version
* Chore/example project cleanup (angular-redux#52)
* chore(example): use npm package instead of source.
* Prefer the chrome extension dev tools in README (angular-redux#50)
This is because they don't require a dependency on React.
Also showed an example of enabling Angular 2 to refresh after events fired by the dev tools.
* Dependency cleanup, minor corrections to example devtools. (angular-redux#55)
* Core changelog (angular-redux#53)
* add changelog
`ng2-redux` has two ways that it can be used. The first way is using the `ngRedux.connect` API, which will map the state and dispatch actions to the provided target.
49
+
50
+
There is also `ngRedux.select`, which will expose a slice of your state as an RxJs observable.
* The `mapStateToTarget` function takes a single argument of the entire Redux store’s state and returns an object to be passed as props. It is often called a selector. Use reselect to efficiently compose selectors and compute derived data.
All of redux's store methods (i.e. `dispatch`, `subscribe` and `getState`) are exposed by $ngRedux and can be accessed directly. For example:
108
163
@@ -115,9 +170,59 @@ ngRedux.subscribe(() => {
115
170
116
171
This means that you are free to use Redux basic API in advanced cases where `connect`'s API would not fill your needs.
117
172
118
-
119
173
## Using DevTools
120
174
121
-
In order to use Redux DevTools with your angular app, you need to install [react](https://www.npmjs.com/package/react), [react-redux](https://www.npmjs.com/package/react-redux) and [redux-devtools](https://www.npmjs.com/package/redux-devtools) as development dependencies.
175
+
Ng2Redux is fully compatible with the Chrome extension version of the Redux dev tools:
Here's how to enable them in your app (you probably only want to do
180
+
this in development mode):
122
181
123
-
You can find a sample devtools implentation in the [counter example](https://github.com/wbuchwalter/ng2-redux/blob/master/examples/counter/devTools.js)
0 commit comments