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
import { CommonModule } from '@angular/common'; | |
import { NgModule } from '@angular/core'; | |
import { DynamicMultipleOneComponent } from './dynamic-multiple-one.component'; | |
import { DynamicMultipleTwoComponent } from './dynamic-multiple-two.component'; | |
@NgModule({ | |
declarations: [MySpecialDynamicContentComponent], | |
imports: [CommonModule], | |
entryComponents: [MySpecialDynamicContentComponent] | |
}) |
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
import { CommonModule } from '@angular/common'; | |
import { | |
NgModule, | |
NgModuleFactoryLoader, | |
SystemJsNgModuleLoader | |
} from '@angular/core'; | |
import { DynamicContentOutletErrorComponent } from './dynamic-content-outlet-error.component'; | |
import { DynamicContentOutletComponent } from './dynamic-content-outlet.component'; | |
import { DynamicContentOutletService } from './dynamic-content-outlet.service'; |
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
import { | |
Component, | |
ComponentRef, | |
Input, | |
OnChanges, | |
OnDestroy, | |
ViewChild, | |
ViewContainerRef | |
} from '@angular/core'; | |
import { DynamicContentOutletService } from './dynamic-content-outlet.service'; |
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
import { Component, Input } from '@angular/core'; | |
@Component({ | |
selector: 'app-dynamic-content-outlet-error-component', | |
template: ` | |
<div>{{ errorMessage }}</div> | |
` | |
}) | |
export class DynamicContentOutletErrorComponent { | |
@Input() errorMessage: string; |
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
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'; |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug App", | |
"type": "chrome", | |
"request": "launch", | |
"url": "http://localhost:4200", | |
"sourceMaps": true, | |
"webRoot": "${workspaceRoot}/src", |
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
{ | |
"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 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 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 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( |