Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Rotate messages to help time pass while waiting for work to happen.

Notifications You must be signed in to change notification settings

cjstremick/angular-hold-tight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-hold-tight

Rotate messages to help time pass while waiting for work to happen.

Installation

From your Angular 5 project npm i angular-hold-tight

Use

Import the HoldTightModule into one of your Angular modules

import {HoldTightModule} from 'angular-hold-tight';

@NgModule({
   ...
   imports: [
       ...
       HoldTightModule,
       ...
   ],
   ...

Now you can use the component where you like:

<hold-tight></hold-tight>

Optional configuration

Pass a 'delay' property to the control to change the default delay of 2500 millisends.

<hold-tight [delay]="1000"></hold-tight>

The component has a few default messages. You can supply a new list of messages to the component like this:

const customMessages = [
  'Doing something...',
  'Doing somehting else...',
  'Doing more things...',
  'So many messages...',
  'TODO: Be creative...'
];

@NgModule({
    ...
    providers: [{ provide: HT_MESSAGES, useValue: customMessages }],
    ...

About

Rotate messages to help time pass while waiting for work to happen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published