This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@ng4746/notice
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

NPM Version NPM Downloads

Install from npm:

npm install @ng4746/notice --save

Add needed package to NgModule imports:

import { NoticeModule } from '@ng4746/notice';

@NgModule({
  ...
  imports: [
    NoticeModule.withConfig({
      global: {
        newOnTop: true,
        maxAtPosition: 6,
        maxOnScreen: 8,
        filterDuplicates: false
      },
      toast: {
        type: 'info'
      }}
    )
    ...
  ]
  ...
})

Add app.component.html:

  <notice-section class="material"></notice-section>

Add styles.scss:

.material {
  @import "~@ng4746/notice/styles/material";
}
.simple {
  @import "~@ng4746/notice/styles/simple";
}
.dark {
  @import "~@ng4746/notice/styles/dark";
}

.snotify-icon {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center;
}

Credit

Inspired by ng-snotify.

MIT License

Package Sidebar

Install

npm i @ng4746/notice

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

979 kB

Total Files

114

Last publish

Collaborators

  • f5