Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Latest commit

 

History

History
171 lines (92 loc) · 4.83 KB

CHANGELOG.md

File metadata and controls

171 lines (92 loc) · 4.83 KB

1.2.6 (2017-04-20)

Bug Fixes

  • deps: Fixed peer dependencies for Angular 4.x (#52) (6e63e9e)
  • ngmodule: Added empty object for NgModule metadata (#39) (95e0021)

1.2.5 (2016-10-13)

Bug Fixes

  • reducer: Added non-null value for initial state path (#27) (2c776c5)

1.2.4 (2016-09-19)

Bug Fixes

1.2.3 (2016-09-16)

Bug Fixes

  • listener: Fixed bug with listening for store changes (#23) (821bebc)

1.2.2 (2016-09-15)

Bug Fixes

  • docs: Replaced ngrx/router with angular/router in package.json (#19) (8242b1d)

1.2.1 (2016-09-13)

Bug Fixes

1.2.0 (2016-09-13)

Features

  • actions: Added support for router NavigationExtras (#16) (e30cf16)

1.1.0 (2016-08-30)

Bug Fixes

  • actions: Added show action to export (#10) (5a1ed83)

Features

  • actions: Added handling of an array for router actions (#12) (3b4b827)

1.0.0 (2016-08-27)

Features

BREAKING CHANGES

  • router-store: Router API has changed internally

BEFORE:

Use the routerReducer when providing Store:

import { provideStore } from '@ngrx/store';
import { routerReducer } from '@ngrx/router-store';


export const storeProvider = provideStore({
  // Your reducers go here,
  router: routerReducer
});

Install the bindings providers after you setup the router providers:

import { connectRouterToStore } from '@ngrx/router-store';

bootstrap(App, [
  storeProvider,
  provideRouter(routes),
  connectRouterToStore()
]);

AFTER:

Use the routerReducer when providing the StoreModule.provideStore and add the RouterStoreModule.connectRouter() to the @NgModule.imports:

import { StoreModule } from '@ngrx/store';
import { routerReducer, RouterStoreModule } from '@ngrx/router-store';

@NgModule({
  imports: [
    BrowserModule,
    StoreModule.provideStore({ router: routerReducer }),
    RouterStoreModule.connectRouter()
  ],
  bootstrap: [ AppComponent ]
})
export class AppModule {
}

BEFORE:

import {routerActions} from '@ngrx/store';

store.dispatch(routerActions.go('/path', 'query=string'));
store.dispatch(routerActions.replace('/path', 'query=string'));
store.dispatch(routerActions.search('query=string'));

AFTER:

import {routerActions} from '@ngrx/store';

store.dispatch(routerActions.go('/path', { query: 'string' ));
store.dispatch(routerActions.replace('/path', { query: 'string' ));
store.dispatch(routerActions.search({ query: 'string' ));

0.0.1 (2016-05-13)