Miss any of our Open RFC calls?Watch the recordings here! »

This package has been deprecated

Author message:

No longer maintained

ngx-status-bar

1.0.0 • Public • Published

ngx-status-bar

An Angular 7 status bar component.

NPM Build Status

Install

$ npm install --save ngx-status-bar

Usage

// in app.module.ts
import { NgxStatusBarModule } from 'ngx-status-bar';
 
@NgModule({
  declarations: [
    ...
  ],
  imports: [
    NgxStatusBarModule,
    ...
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
<!-- in app.component.html -->
<ngx-status-bar></ngx-status-bar>
// in app.component.ts
import { NgxStatusBarService } from 'ngx-status-bar';
 
// ...
export class AppComponent {
 
  constructor(
    private statusBar: NgxStatusBarService
  ) { }
 
  setStatus(message: string) {
    this.statusBar.success(message);
  }
}
/* Make sure you set these properties in styles.(s)css */
htmlbody {
  height: 100%;
  margin: 0;
}

Licence

MIT © Peter Freeman

Install

npm i ngx-status-bar

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

69.6 kB

Total Files

26

Last publish

Collaborators

  • avatar