This package has been deprecated

Author message:

No longer maintained

ngx-status-bar
TypeScript icon, indicating that this package has built-in type declarations

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

Package Sidebar

Install

npm i ngx-status-bar

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

69.6 kB

Total Files

26

Last publish

Collaborators

  • peterfreeman