This file contains hidden or 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
import { CommonModule } from '@angular/common'; | |
import { NgModule } from '@angular/core'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { StoreModule } from '@ngrx/store'; | |
import { MyFeatureStoreEffects } from './effects'; | |
import { featureReducer } from './reducer'; | |
@NgModule({ | |
imports: [ | |
CommonModule, |
This file contains hidden or 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
import * as MyFeatureStoreActions from './actions'; | |
import * as MyFeatureStoreSelectors from './selectors'; | |
import * as MyFeatureStoreState from './state'; | |
export { | |
MyFeatureStoreModule | |
} from './my-feature-store.module'; | |
export { | |
MyFeatureStoreActions, |
This file contains hidden or 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
import { MyFeatureStoreState } from './my-feature-store'; | |
import { MyOtherFeatureStoreState } from './my-other-feature-store'; | |
export interface State { | |
myFeature: MyFeatureStoreState.State; | |
myOtherFeature: MyOtherFeatureStoreState.State; | |
} |
This file contains hidden or 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
import { CommonModule } from '@angular/common'; | |
import { NgModule } from '@angular/core'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { StoreModule } from '@ngrx/store'; | |
import { MyFeatureStoreModule } from './my-feature-store/'; | |
import { MyOtherFeatureStoreModule } from './my-other-feature-store/'; | |
@NgModule({ | |
imports: [ | |
CommonModule, |
This file contains hidden or 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
import { createSelector, MemoizedSelector } from '@ngrx/store'; | |
import { | |
MyFeatureStoreSelectors | |
} from './my-feature-store'; | |
import { | |
MyOtherFeatureStoreSelectors | |
} from './my-other-feature-store'; | |
export const selectError: MemoizedSelector<object, string> = createSelector( |
This file contains hidden or 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
import { RootStoreModule } from './root-store.module'; | |
import * as RootStoreSelectors from './selectors'; | |
import * as RootStoreState from './state'; | |
export * from './my-feature-store'; | |
export * from './my-other-feature-store'; | |
export { RootStoreState, RootStoreSelectors, RootStoreModule }; |
This file contains hidden or 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
import { Component, OnInit } from '@angular/core'; | |
import { Store } from '@ngrx/store'; | |
import { Observable } from 'rxjs'; | |
import { MyModel } from '../../models'; | |
import { | |
RootStoreState, | |
MyFeatureStoreActions, | |
MyFeatureStoreSelectors | |
} from '../../root-store'; |
This file contains hidden or 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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"window.zoomLevel": 1, | |
"editor.formatOnSave": true, | |
"prettier.singleQuote": true, | |
"prettier.eslintIntegration": true, | |
"prettier.tabWidth": 2, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug App", | |
"type": "chrome", | |
"request": "launch", | |
"url": "http://localhost:4200", | |
"sourceMaps": true, | |
"webRoot": "${workspaceRoot}/src", |
This file contains hidden or 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
import { | |
ComponentFactoryResolver, | |
ComponentRef, | |
Injectable, | |
Injector, | |
NgModuleFactoryLoader, | |
Type | |
} from '@angular/core'; | |
import { DynamicContentOutletErrorComponent } from './dynamic-content-outlet-error.component'; | |
import { DynamicContentOutletRegistry } from './dynamic-content-outlet.registry'; |