
@ngx-toolkit/utils
Angular common utilities
Table of contents:
Installation
Install the npm package.
npm install @ngx-toolkit/utils --save
yarn add @ngx-toolkit/utils
Queue
Queue annotation:
import { Queue } from '@ngx-toolkit/utils';
...
class MyComponent {
@Queue(limit?: number, name?: string)
method(): Promise | Subscription | any | void;
}
Wait
Wait annotation (shortcut of @Queue(1)):
import { Wait } from '@ngx-toolkit/utils';
...
class MyComponent {
@Wait(name?: string)
method(): Promise | Subscription | any | void;
}
Once
Once annotation:
import { Once } from '@ngx-toolkit/utils';
...
class MyComponent {
@Once(name?: string)
method(): Promise | Subscription | any | void;
}
License
© 2018 Dewizz
MIT