This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade to Angular 2 RC.5 (#3)
Upgrades the store log monitor to Angular RC.5 BREAKING CHANGE: With the introduction of NgModules, setting up StoreLogMonitor has changed. Before: ```ts import { instrumentStore } from '@ngrx/store-devtools'; import { useLogMonitor, StoreLogMonitorComponent } from '@ngrx/store-log-monitor'; @component({ providers: [ instrumentStore({ monitor: useLogMonitor() }) ], directives: [ StoreLogMonitorComponent ] }) export class AppComponent { } ``` After: ```ts import { StoreDevtoolsModule } from '@ngrx/store-devtools'; import { StoreLogMonitorModule, useLogMonitor } from '@ngrx/store-log-monitor'; @NgModule({ imports: [ StoreDevtoolsModule.instrumentStore({ monitor: useLogMonitor() }), StoreLogMonitorModule ] }) export class AppModule { } ```
- Loading branch information
1 parent
dcf3441
commit 29656f3
Showing
29 changed files
with
174 additions
and
240 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 |
---|---|---|
|
@@ -53,4 +53,5 @@ __build__/** | |
!/typings/custom.d.ts | ||
|
||
# Build Artifacts # | ||
release | ||
release | ||
.ngc |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
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,29 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { CommanderComponent } from './commander'; | ||
import { DockComponent } from './dock'; | ||
import { DockMonitorComponent } from './dock-monitor'; | ||
import { DockActions } from './actions'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
CommanderComponent, | ||
DockComponent, | ||
DockMonitorComponent | ||
], | ||
providers: [ | ||
DockActions | ||
], | ||
exports: [ | ||
DockMonitorComponent | ||
] | ||
}) | ||
export class DockMonitorModule { | ||
|
||
} | ||
|
||
export { useDockMonitor, DockState } from './reducer'; |
File renamed without changes.
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,24 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { DockMonitorModule } from './dock-monitor'; | ||
import { LogMonitorModule } from './log-monitor'; | ||
import { StoreLogMonitorComponent } from './store-log-monitor'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
DockMonitorModule, | ||
LogMonitorModule | ||
], | ||
declarations: [ | ||
StoreLogMonitorComponent | ||
], | ||
exports: [ | ||
StoreLogMonitorComponent | ||
] | ||
}) | ||
export class StoreLogMonitorModule { } | ||
|
||
|
||
export { useDockMonitor as useLogMonitor, DockState as LogMonitorState } from './dock-monitor'; |
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,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { JsonNodeComponent } from './json-node'; | ||
import { JsonTreeComponent } from './json-tree'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [ | ||
JsonNodeComponent, | ||
JsonTreeComponent | ||
], | ||
exports: [ | ||
JsonTreeComponent | ||
] | ||
}) | ||
export class JsonTreeModule { } |
Oops, something went wrong.