Page tree

Have questions? Stuck? Please check our FAQ for some common questions and answers.

Skip to end of metadata
Go to start of metadata

LoadingService

LoadingService is an Angular Factory in the Layer module, implemented by loading.js. It provides an API to start and stop a "Loading..." animation in the center of the window. 

 

 

NameSummary
startStarts the animation
stopStops the animation
waitingReturns true if start() has been called but stop() has not

 

Function Descriptions

start

Starts the "Loading..." animation after a 500ms delay.

(This function is idempotent)

Example UsageArgumentsReturn Value
ls.start();nonenone

stop

Cancels the delayed start task and stops the "Loading..." animation.

(This function is idempotent)

Example UsageArgumentsReturn Value
ls.stop();nonenone

waiting

Returns true if start() has been called and stop() has not.

Example UsageArgumentsReturn Value
if (ls.waiting()) ...nonetrue, if waiting to be stopped; false otherwise

 

 

  • No labels