Skip to content

leye0/AngularUiLoadingDirective

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Angular UI Loading Directive for Angular 2 and more

Directive to display a loading state on specific elements of your UI.

Getting Started

  • Download the source
  • Add the ui-loading directory to your project
  • Inject the UILoadingModule in one of your module
  • Configure with custom styleClass if needed

Usage

<!-- In a component, set the uiLoading directive value to the name of an action (observable or subscription) -->
<!-- that has been added by the uiLoadingService -->
<div [uiLoading]="fetchingList1">
  <app-item [ngFor]="item of list1" [model]="item"></app-item>
</div>
<div [uiLoading]="fetchingList2">
  <app-item [ngFor]="item of list2" [model]="item"></app-item>
</div>

<button (click)="fetchHero()">GO</button>

TODO - Example in code. (Use observable with delays.)

Configuration

TODO

Demo

TODO Plunker

Releases

No releases published

Packages

No packages published