rewrote window resize event using redux

This commit is contained in:
Art Lowel
2016-12-12 16:02:27 +01:00
parent 69f8d9855a
commit 20632a8d12
10 changed files with 88 additions and 26 deletions

View File

@@ -0,0 +1,14 @@
import { Action } from "@ngrx/store";
export class HostWindowActions {
static RESIZE = 'dspace/host-window/RESIZE';
static resize(newWidth: number, newHeight: number): Action {
return {
type: HostWindowActions.RESIZE,
payload: {
width: newWidth,
height: newHeight
}
}
}
}