This repository has been archived by the owner on Jan 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Store): Enable fractal state management
- Loading branch information
1 parent
30544e9
commit 684d04b
Showing
32 changed files
with
1,399 additions
and
970 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export * from './src/dispatcher'; | ||
export * from './src/ng2'; | ||
export * from './src/reducer'; | ||
export * from './src/state'; | ||
export * from './src/store'; | ||
export * from './src/utils'; | ||
import * as __private_export__ from './src/private_export'; | ||
|
||
export { Action, ActionReducer, ActionReducerMap, ActionReducerFactory } from './src/models'; | ||
export { StoreModule } from './src/store_module'; | ||
export { Store } from './src/store'; | ||
export { combineReducers, compose } from './src/utils'; | ||
export { __private_export__ }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ReflectiveInjector, ModuleWithProviders } from '@angular/core'; | ||
|
||
|
||
export function createInjector({ ngModule, providers }: ModuleWithProviders): ReflectiveInjector { | ||
const injector = ReflectiveInjector.resolveAndCreate([ ...(providers || []), ngModule ]); | ||
|
||
injector.get(ngModule); | ||
|
||
return injector; | ||
} | ||
|
||
export function createChildInjector(parent: ReflectiveInjector, { ngModule, providers }: ModuleWithProviders): ReflectiveInjector { | ||
const injector = parent.resolveAndCreateChild([ ...(providers || []), ngModule ]); | ||
|
||
injector.get(ngModule); | ||
|
||
return injector; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.