From c2970e34ba70cedd19939adc12f246412273a3d4 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Sun, 10 Jun 2018 19:46:33 +0300 Subject: [PATCH] Content component small tweaks --- .../components/content/content.component.scss | 2 +- .../components/content/content.component.ts | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/app/layout/components/content/content.component.scss b/src/app/layout/components/content/content.component.scss index e40a008e..b0530a20 100644 --- a/src/app/layout/components/content/content.component.scss +++ b/src/app/layout/components/content/content.component.scss @@ -1,6 +1,6 @@ content { position: relative; - display:flex; + display: flex; z-index: 1; flex: 1 0 auto; diff --git a/src/app/layout/components/content/content.component.ts b/src/app/layout/components/content/content.component.ts index 86fedeaf..e4cd9524 100644 --- a/src/app/layout/components/content/content.component.ts +++ b/src/app/layout/components/content/content.component.ts @@ -19,19 +19,19 @@ export class ContentComponent implements OnInit, OnDestroy fuseConfig: any; @HostBinding('@routerTransitionUp') - routeAnimationUp = false; + routeAnimationUp: boolean; @HostBinding('@routerTransitionDown') - routeAnimationDown = false; + routeAnimationDown: boolean; @HostBinding('@routerTransitionRight') - routeAnimationRight = false; + routeAnimationRight: boolean; @HostBinding('@routerTransitionLeft') - routeAnimationLeft = false; + routeAnimationLeft: boolean; @HostBinding('@routerTransitionFade') - routeAnimationFade = false; + routeAnimationFade: boolean; // Private private _unsubscribeAll: Subject; @@ -49,6 +49,13 @@ export class ContentComponent implements OnInit, OnDestroy private _router: Router ) { + // Set the defaults + this.routeAnimationUp = false; + this.routeAnimationDown = false; + this.routeAnimationRight = false; + this.routeAnimationLeft = false; + this.routeAnimationFade = false; + // Set the private defaults this._unsubscribeAll = new Subject(); }