Current loader is with http://materializecss.com/
optional : [loadOnInit]="true"
Usage :
<div hasLoading [loadOnInit]="true" [onLoading]="'dashLoad'">
</div>before callback
LoadingService.show('dashLoad'); callback finished
LoadingService.hide('dashLoad');Example usage
LoadingService.hide('myElement');
this.licenceService.getLicence(licenceId).subscribe(
data => LoadingService.hide('myElement'),
err => err,
}
);