0.0.5 • Published 4 years ago

run-outside-angular v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

@RunOutsideAngular

An Angular class decorator that wrap all class methods excluding constructor and Angular lifecycle methods on ngZone.runOutsideAngular(). Add method names which should be excluded in config.

npm i run-outside-angular
import { RunOutsideAngular } from 'run-outside-angular';

@RunOutsideAngular({
    exclude: ['yo']
})
@Component({...})
export class ExampleComponent {
    // _ngZone must be in constructor class
    constructor(private _ngZOne: NgZone)

    yo() {
        // will be runned in Angular Zone
    }

    hoho() {
        // will be runned out Angular Zone
    }
}
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago