Improving the codebase

This commit is contained in:
Sercan Yemen 2018-05-27 16:55:46 +03:00
parent 5d000a849d
commit 27197a55dc
4 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { AfterContentChecked, Directive, ElementRef, TemplateRef, ViewContainerR
}) })
export class FuseIfOnDomDirective implements AfterContentChecked export class FuseIfOnDomDirective implements AfterContentChecked
{ {
isCreated = false; isCreated: boolean;
/** /**
* Constructor * Constructor
@ -20,6 +20,8 @@ export class FuseIfOnDomDirective implements AfterContentChecked
private _viewContainerRef: ViewContainerRef private _viewContainerRef: ViewContainerRef
) )
{ {
// Set the defaults
this.isCreated = false;
} }
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------

View File

@ -13,7 +13,7 @@ import { FuseMatSidenavHelperService } from '@fuse/directives/fuse-mat-sidenav/f
export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
{ {
@HostBinding('class.mat-is-locked-open') @HostBinding('class.mat-is-locked-open')
isLockedOpen = true; isLockedOpen: boolean;
@Input('fuseMatSidenavHelper') @Input('fuseMatSidenavHelper')
id: string; id: string;
@ -39,6 +39,9 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy
private _observableMedia: ObservableMedia private _observableMedia: ObservableMedia
) )
{ {
// Set the defaults
this.isLockedOpen = true;
// Set the private defaults // Set the private defaults
this._unsubscribeAll = new Subject(); this._unsubscribeAll = new Subject();
} }

View File

@ -45,4 +45,5 @@ export class FuseMatchMediaService
} }
}); });
} }
} }