Content component small tweaks

This commit is contained in:
Sercan Yemen 2018-06-10 19:46:33 +03:00
parent 7d6a92fada
commit c2970e34ba
2 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,6 @@
content { content {
position: relative; position: relative;
display:flex; display: flex;
z-index: 1; z-index: 1;
flex: 1 0 auto; flex: 1 0 auto;

View File

@ -19,19 +19,19 @@ export class ContentComponent implements OnInit, OnDestroy
fuseConfig: any; fuseConfig: any;
@HostBinding('@routerTransitionUp') @HostBinding('@routerTransitionUp')
routeAnimationUp = false; routeAnimationUp: boolean;
@HostBinding('@routerTransitionDown') @HostBinding('@routerTransitionDown')
routeAnimationDown = false; routeAnimationDown: boolean;
@HostBinding('@routerTransitionRight') @HostBinding('@routerTransitionRight')
routeAnimationRight = false; routeAnimationRight: boolean;
@HostBinding('@routerTransitionLeft') @HostBinding('@routerTransitionLeft')
routeAnimationLeft = false; routeAnimationLeft: boolean;
@HostBinding('@routerTransitionFade') @HostBinding('@routerTransitionFade')
routeAnimationFade = false; routeAnimationFade: boolean;
// Private // Private
private _unsubscribeAll: Subject<any>; private _unsubscribeAll: Subject<any>;
@ -49,6 +49,13 @@ export class ContentComponent implements OnInit, OnDestroy
private _router: Router 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 // Set the private defaults
this._unsubscribeAll = new Subject(); this._unsubscribeAll = new Subject();
} }