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

@@ -1,24 +1,22 @@
import { Injectable } from "@angular/core";
import { Action } from "@ngrx/store";
@Injectable()
export class HeaderActions {
static COLLAPSE = 'dspace/header/COLLAPSE';
collapse(): Action {
static collapse(): Action {
return {
type: HeaderActions.COLLAPSE
}
}
static EXPAND = 'dspace/header/EXPAND';
expand(): Action {
static expand(): Action {
return {
type: HeaderActions.EXPAND
}
}
static TOGGLE = 'dspace/header/TOGGLE';
toggle(): Action {
static toggle(): Action {
return {
type: HeaderActions.TOGGLE
}