Skip to content

neridonk/Angular2Loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular2Loading

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,
     }
    );

About

An angular 2 loader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published