File

src/app/shared/miscellaneous/some-feature.ts

Index

Methods

Methods

doSomething
doSomething()
Decorators :
@throttle(1000 as PollingSpeed, {leading: true})
Returns : void
import { throttle } from 'lodash-decorators';

import { PollingSpeed } from './util.const.ts';

export class SomeFeature {
    @throttle(1000 as PollingSpeed, { leading: true })
    doSomething() {
        // do something throttled
    }
}

results matching ""

    No results matching ""