diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4d68c95 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible Node.js debug attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Unit Tests", + "program": "${workspaceRoot}/tests.js" + } + ] +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e636389..1e4ab45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 6.5.0 + +* Enabled fractal store features for the decorator interface. See +https://github.com/angular-redux/store/blob/master/articles/fractal-store.md for details. + # 6.4.5 * Fix a boundary condition where `MockNgRedux` could get instantiated diff --git a/articles/fractal-store.md b/articles/fractal-store.md index c8104b8..112cbe0 100644 --- a/articles/fractal-store.md +++ b/articles/fractal-store.md @@ -99,6 +99,63 @@ existing subStore. ## What about @select, @select$, @dispatch? -We don't have decorator support for the fractal store yet. These decorators -act on the global store only right now. We're thinking about a clean way -of doing fractal decorators for a future release. +As of 6.5.0, the decorator interface has been expanded to support fractal +stores as well. + +Tag your component or service with the `@WithSubStore` decorator, and a substore will be +configured behind the scenes; instance of that class's `@select`, `@select$`, and `@dispatch` decorators will now operate on that substore instead of the root store. Reworking the +example above with the decorator interface looks like this: + +```typescript +interface IUser { + name: string, + occupation: string, + loc: number, +}; + +export const userComponentReducer = (state, action) => + action.type === 'ADD_LOC' ? + { ...state, loc: state.loc + action.payload } : + state; + +export const defaultToZero = (obs$: Observable) => + obs$.map(n => n || 0); + +@Component({ + selector: 'user', + template: ` +

name: {{ name$ |async }}

+

occupation: {{ occupation$ | async }}

+

lines of code: {{ loc$ | async }}

+     + `, +}) +@WithSubStore({ + basePathMethodName: 'getBasePath', + localReducer: userComponentReducer, +}) +export class UserComponent implements NgOnInit { + @Input() userId: String; + + // The substore will be created at the first non-falsy path returned + // from this function. + getBasePath(): PathSelector | null { + return this.userId ? ['users', userId] : null; + } + + // These selections are now scoped to the portion of the store rooted + // at ['users', userId]; + @select('name') readonly name$: Observable; + @select('occupation') readonly occupation$: Observable; + @select$('loc', defaultToZero) readonly loc$: Observable; + + // These dispatches will be scoped to the substore as well, as if you + // had called ngRedux.configureSubStore(...).dispatch(numLines). + @dispatch() + addCode(numLines) { + // Dispatching from the sub-store ensures this component instance's + // subStore only sees the 'ADD_LOC' action. + return { type: 'ADD_LOC', payload: numLines }; + } +} +``` \ No newline at end of file diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index c85a276..95a9495 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"64":"Function","128":"Class","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"Comparator","url":"globals.html#comparator","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#comparator.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"Comparator"},{"id":2,"kind":4194304,"name":"Transformer","url":"globals.html#transformer","classes":"tsd-kind-type-alias"},{"id":3,"kind":65536,"name":"__type","url":"globals.html#transformer.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"Transformer"},{"id":4,"kind":4194304,"name":"PropertySelector","url":"globals.html#propertyselector","classes":"tsd-kind-type-alias"},{"id":5,"kind":4194304,"name":"PathSelector","url":"globals.html#pathselector","classes":"tsd-kind-type-alias"},{"id":6,"kind":4194304,"name":"FunctionSelector","url":"globals.html#functionselector","classes":"tsd-kind-type-alias"},{"id":7,"kind":65536,"name":"__type","url":"globals.html#functionselector.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"FunctionSelector"},{"id":8,"kind":4194304,"name":"Selector","url":"globals.html#selector","classes":"tsd-kind-type-alias"},{"id":9,"kind":256,"name":"ObservableStore","url":"interfaces/observablestore.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":10,"kind":1024,"name":"select","url":"interfaces/observablestore.html#select","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ObservableStore"},{"id":11,"kind":65536,"name":"__type","url":"interfaces/observablestore.html#select.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"ObservableStore.select"},{"id":12,"kind":1024,"name":"configureSubStore","url":"interfaces/observablestore.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ObservableStore"},{"id":13,"kind":65536,"name":"__type","url":"interfaces/observablestore.html#configuresubstore.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"ObservableStore.configureSubStore"},{"id":14,"kind":1024,"name":"dispatch","url":"interfaces/observablestore.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":15,"kind":2048,"name":"getState","url":"interfaces/observablestore.html#getstate","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":16,"kind":2048,"name":"subscribe","url":"interfaces/observablestore.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":17,"kind":2048,"name":"replaceReducer","url":"interfaces/observablestore.html#replacereducer","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":18,"kind":128,"name":"NgRedux","url":"classes/ngredux.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":19,"kind":1024,"name":"configureStore","url":"classes/ngredux.html#configurestore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":20,"kind":65536,"name":"__type","url":"classes/ngredux.html#configurestore.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.configureStore"},{"id":21,"kind":1024,"name":"provideStore","url":"classes/ngredux.html#providestore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":22,"kind":65536,"name":"__type","url":"classes/ngredux.html#providestore.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.provideStore"},{"id":23,"kind":1024,"name":"dispatch","url":"classes/ngredux.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":24,"kind":1024,"name":"getState","url":"classes/ngredux.html#getstate","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":25,"kind":65536,"name":"__type","url":"classes/ngredux.html#getstate.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.getState"},{"id":26,"kind":1024,"name":"subscribe","url":"classes/ngredux.html#subscribe","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":27,"kind":65536,"name":"__type","url":"classes/ngredux.html#subscribe.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.subscribe"},{"id":28,"kind":1024,"name":"replaceReducer","url":"classes/ngredux.html#replacereducer","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":29,"kind":65536,"name":"__type","url":"classes/ngredux.html#replacereducer.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.replaceReducer"},{"id":30,"kind":1024,"name":"select","url":"classes/ngredux.html#select","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":31,"kind":65536,"name":"__type","url":"classes/ngredux.html#select.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"NgRedux.select"},{"id":32,"kind":1024,"name":"configureSubStore","url":"classes/ngredux.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":33,"kind":65536,"name":"__type","url":"classes/ngredux.html#configuresubstore.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"NgRedux.configureSubStore"},{"id":34,"kind":128,"name":"DevToolsExtension","url":"classes/devtoolsextension.html","classes":"tsd-kind-class"},{"id":35,"kind":2048,"name":"enhancer","url":"classes/devtoolsextension.html#enhancer","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DevToolsExtension"},{"id":36,"kind":2048,"name":"isEnabled","url":"classes/devtoolsextension.html#isenabled","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DevToolsExtension"},{"id":37,"kind":64,"name":"select","url":"globals.html#select","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":38,"kind":64,"name":"select$","url":"globals.html#select_","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":39,"kind":64,"name":"dispatch","url":"globals.html#dispatch","classes":"tsd-kind-function"},{"id":40,"kind":128,"name":"NgReduxModule","url":"classes/ngreduxmodule.html","classes":"tsd-kind-class"},{"id":41,"kind":128,"name":"MockDevToolsExtension","url":"classes/mockdevtoolsextension.html","classes":"tsd-kind-class"},{"id":42,"kind":1024,"name":"enhancer","url":"classes/mockdevtoolsextension.html#enhancer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"MockDevToolsExtension"},{"id":43,"kind":65536,"name":"__type","url":"classes/mockdevtoolsextension.html#enhancer.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"MockDevToolsExtension.enhancer"},{"id":44,"kind":1024,"name":"isEnabled","url":"classes/mockdevtoolsextension.html#isenabled","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"MockDevToolsExtension"},{"id":45,"kind":65536,"name":"__type","url":"classes/mockdevtoolsextension.html#isenabled.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"MockDevToolsExtension.isEnabled"},{"id":46,"kind":128,"name":"MockNgRedux","url":"classes/mockngredux.html","classes":"tsd-kind-class"},{"id":47,"kind":1024,"name":"mockInstance","url":"classes/mockngredux.html#mockinstance","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":48,"kind":2048,"name":"getSelectorStub","url":"classes/mockngredux.html#getselectorstub","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"MockNgRedux"},{"id":49,"kind":2048,"name":"getSubStore","url":"classes/mockngredux.html#getsubstore","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"MockNgRedux"},{"id":50,"kind":2048,"name":"reset","url":"classes/mockngredux.html#reset","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":51,"kind":2048,"name":"getInstance","url":"classes/mockngredux.html#getinstance","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":52,"kind":2048,"name":"provideStore","url":"classes/mockngredux.html#providestore","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":53,"kind":2048,"name":"configureStore","url":"classes/mockngredux.html#configurestore","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":54,"kind":1024,"name":"configureSubStore","url":"classes/mockngredux.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":55,"kind":1024,"name":"select","url":"classes/mockngredux.html#select","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":56,"kind":1024,"name":"dispatch","url":"classes/mockngredux.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":57,"kind":1024,"name":"getState","url":"classes/mockngredux.html#getstate","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":58,"kind":1024,"name":"subscribe","url":"classes/mockngredux.html#subscribe","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":59,"kind":1024,"name":"replaceReducer","url":"classes/mockngredux.html#replacereducer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":60,"kind":128,"name":"NgReduxTestingModule","url":"classes/ngreduxtestingmodule.html","classes":"tsd-kind-class"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"64":"Function","128":"Class","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"Comparator","url":"globals.html#comparator","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#comparator.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"Comparator"},{"id":2,"kind":4194304,"name":"Transformer","url":"globals.html#transformer","classes":"tsd-kind-type-alias"},{"id":3,"kind":65536,"name":"__type","url":"globals.html#transformer.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"Transformer"},{"id":4,"kind":4194304,"name":"PropertySelector","url":"globals.html#propertyselector","classes":"tsd-kind-type-alias"},{"id":5,"kind":4194304,"name":"PathSelector","url":"globals.html#pathselector","classes":"tsd-kind-type-alias"},{"id":6,"kind":4194304,"name":"FunctionSelector","url":"globals.html#functionselector","classes":"tsd-kind-type-alias"},{"id":7,"kind":65536,"name":"__type","url":"globals.html#functionselector.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"FunctionSelector"},{"id":8,"kind":4194304,"name":"Selector","url":"globals.html#selector","classes":"tsd-kind-type-alias"},{"id":9,"kind":256,"name":"ObservableStore","url":"interfaces/observablestore.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":10,"kind":1024,"name":"select","url":"interfaces/observablestore.html#select","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ObservableStore"},{"id":11,"kind":65536,"name":"__type","url":"interfaces/observablestore.html#select.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"ObservableStore.select"},{"id":12,"kind":1024,"name":"configureSubStore","url":"interfaces/observablestore.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ObservableStore"},{"id":13,"kind":65536,"name":"__type","url":"interfaces/observablestore.html#configuresubstore.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"ObservableStore.configureSubStore"},{"id":14,"kind":1024,"name":"dispatch","url":"interfaces/observablestore.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":15,"kind":2048,"name":"getState","url":"interfaces/observablestore.html#getstate","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":16,"kind":2048,"name":"subscribe","url":"interfaces/observablestore.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":17,"kind":2048,"name":"replaceReducer","url":"interfaces/observablestore.html#replacereducer","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"ObservableStore"},{"id":18,"kind":128,"name":"NgRedux","url":"classes/ngredux.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":19,"kind":1024,"name":"configureStore","url":"classes/ngredux.html#configurestore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":20,"kind":65536,"name":"__type","url":"classes/ngredux.html#configurestore.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.configureStore"},{"id":21,"kind":1024,"name":"provideStore","url":"classes/ngredux.html#providestore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":22,"kind":65536,"name":"__type","url":"classes/ngredux.html#providestore.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.provideStore"},{"id":23,"kind":1024,"name":"dispatch","url":"classes/ngredux.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":24,"kind":1024,"name":"getState","url":"classes/ngredux.html#getstate","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":25,"kind":65536,"name":"__type","url":"classes/ngredux.html#getstate.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.getState"},{"id":26,"kind":1024,"name":"subscribe","url":"classes/ngredux.html#subscribe","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":27,"kind":65536,"name":"__type","url":"classes/ngredux.html#subscribe.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.subscribe"},{"id":28,"kind":1024,"name":"replaceReducer","url":"classes/ngredux.html#replacereducer","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":29,"kind":65536,"name":"__type","url":"classes/ngredux.html#replacereducer.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"NgRedux.replaceReducer"},{"id":30,"kind":1024,"name":"select","url":"classes/ngredux.html#select","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":31,"kind":65536,"name":"__type","url":"classes/ngredux.html#select.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"NgRedux.select"},{"id":32,"kind":1024,"name":"configureSubStore","url":"classes/ngredux.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-class","parent":"NgRedux"},{"id":33,"kind":65536,"name":"__type","url":"classes/ngredux.html#configuresubstore.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-has-type-parameter tsd-is-not-exported","parent":"NgRedux.configureSubStore"},{"id":34,"kind":128,"name":"DevToolsExtension","url":"classes/devtoolsextension.html","classes":"tsd-kind-class"},{"id":35,"kind":2048,"name":"enhancer","url":"classes/devtoolsextension.html#enhancer","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DevToolsExtension"},{"id":36,"kind":2048,"name":"isEnabled","url":"classes/devtoolsextension.html#isenabled","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DevToolsExtension"},{"id":37,"kind":64,"name":"enableFractalReducers","url":"globals.html#enablefractalreducers","classes":"tsd-kind-function"},{"id":38,"kind":256,"name":"IFractalStoreOptions","url":"interfaces/ifractalstoreoptions.html","classes":"tsd-kind-interface"},{"id":39,"kind":1024,"name":"basePathMethodName","url":"interfaces/ifractalstoreoptions.html#basepathmethodname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFractalStoreOptions"},{"id":40,"kind":1024,"name":"localReducer","url":"interfaces/ifractalstoreoptions.html#localreducer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFractalStoreOptions"},{"id":41,"kind":64,"name":"select","url":"globals.html#select","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":42,"kind":64,"name":"select$","url":"globals.html#select_","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":43,"kind":64,"name":"dispatch","url":"globals.html#dispatch","classes":"tsd-kind-function"},{"id":44,"kind":64,"name":"WithSubStore","url":"globals.html#withsubstore","classes":"tsd-kind-function"},{"id":45,"kind":128,"name":"NgReduxModule","url":"classes/ngreduxmodule.html","classes":"tsd-kind-class"},{"id":46,"kind":128,"name":"MockDevToolsExtension","url":"classes/mockdevtoolsextension.html","classes":"tsd-kind-class"},{"id":47,"kind":2048,"name":"enhancer","url":"classes/mockdevtoolsextension.html#enhancer","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MockDevToolsExtension"},{"id":48,"kind":2048,"name":"isEnabled","url":"classes/mockdevtoolsextension.html#isenabled","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MockDevToolsExtension"},{"id":49,"kind":128,"name":"MockNgRedux","url":"classes/mockngredux.html","classes":"tsd-kind-class"},{"id":50,"kind":1024,"name":"mockInstance","url":"classes/mockngredux.html#mockinstance","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":51,"kind":2048,"name":"getSelectorStub","url":"classes/mockngredux.html#getselectorstub","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"MockNgRedux"},{"id":52,"kind":2048,"name":"getSubStore","url":"classes/mockngredux.html#getsubstore","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"MockNgRedux"},{"id":53,"kind":2048,"name":"reset","url":"classes/mockngredux.html#reset","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":54,"kind":2048,"name":"getInstance","url":"classes/mockngredux.html#getinstance","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MockNgRedux"},{"id":55,"kind":2048,"name":"provideStore","url":"classes/mockngredux.html#providestore","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":56,"kind":2048,"name":"configureStore","url":"classes/mockngredux.html#configurestore","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":57,"kind":1024,"name":"configureSubStore","url":"classes/mockngredux.html#configuresubstore","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":58,"kind":1024,"name":"select","url":"classes/mockngredux.html#select","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":59,"kind":1024,"name":"dispatch","url":"classes/mockngredux.html#dispatch","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":60,"kind":1024,"name":"getState","url":"classes/mockngredux.html#getstate","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":61,"kind":1024,"name":"subscribe","url":"classes/mockngredux.html#subscribe","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":62,"kind":1024,"name":"replaceReducer","url":"classes/mockngredux.html#replacereducer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MockNgRedux"},{"id":63,"kind":128,"name":"NgReduxTestingModule","url":"classes/ngreduxtestingmodule.html","classes":"tsd-kind-class"}]}; \ No newline at end of file diff --git a/docs/classes/devtoolsextension.html b/docs/classes/devtoolsextension.html index 6647e4e..2bbe621 100644 --- a/docs/classes/devtoolsextension.html +++ b/docs/classes/devtoolsextension.html @@ -933,6 +933,9 @@
  • NgReduxTestingModule
  • +
  • + IFractalStoreOptions +
  • ObservableStore
  • @@ -954,9 +957,15 @@
  • Transformer
  • +
  • + WithSubStore +
  • dispatch
  • +
  • + enableFractalReducers +
  • select
  • @@ -979,6 +988,11 @@

    Hierarchy

    @@ -1008,7 +1022,7 @@

    enhancer

  • @@ -1038,7 +1052,7 @@

    isEnabled

  • diff --git a/docs/classes/mockdevtoolsextension.html b/docs/classes/mockdevtoolsextension.html index d7304e7..09de1d6 100644 --- a/docs/classes/mockdevtoolsextension.html +++ b/docs/classes/mockdevtoolsextension.html @@ -913,10 +913,10 @@
  • MockDevToolsExtension @@ -933,6 +933,9 @@
  • NgReduxTestingModule
  • +
  • + IFractalStoreOptions +
  • ObservableStore
  • @@ -954,9 +957,15 @@
  • Transformer
  • +
  • + WithSubStore +
  • dispatch
  • +
  • + enableFractalReducers +
  • select
  • @@ -971,7 +980,7 @@

    Hierarchy

    • - DevToolsExtension + DevToolsExtension
      • MockDevToolsExtension @@ -985,93 +994,70 @@

        Index

        -

        Properties

        +

        Methods

        -

        Properties

        -
        +

        Methods

        +

        enhancer

        -
        enhancer: function
        - -
        -
        -

        A wrapper for the Chrome Extension Redux DevTools. - Makes sure state changes triggered by the extension - trigger Angular2's change detector.

        -
        -
        -
        argument
        -

        options: dev tool options; same - format as described here: - [zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md]

        -
        -
        -
        -
        -

        Type declaration

        -
        + +
        +
        +

        A wrapper for the Chrome Extension Redux DevTools. + Makes sure state changes triggered by the extension + trigger Angular2's change detector.

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional options: Object
          +
        • +
        +

        Returns any

        +
      • +
      -
      +

      isEnabled

      -
      isEnabled: function
      - -
      -
      -

      Returns true if the extension is installed and enabled.

      -
      -
      -
      -

      Type declaration

      -
      + +
      +
      +

      Returns true if the extension is installed and enabled.

      +
      +
      +

      Returns any

      +
    • +