ng-effects
    TypeScript icon, indicating that this package has built-in type declarations

    9.1.1 • Public • Published
    Reactive hooks for Angular.

    Reactivity system for Angular. Based on Vue Composition API.


    Github    📝 API Reference    ⚡ StackBlitz


    @Component({
        selector: "app-root",
        inputs: ["count"],
        outputs: ["countChange"]
    })
    export class AppRoot extends defineComponent(() => {
        const count = ref(0)
        const countChange = new EventEmitter<number>()
     
        function increment() {
            count.value += 1
        }
     
        watchEffect((onInvalidate) => {
            console.log(count.value)
            onInvalidate(() => {
                countChange.emit(count.value)
            })
        })
     
        return {
            count,
            countChange,
            increment,
        }
    }) {}

    Installation

    Install via NPM.

    npm install ng-effects@next

    Install

    npm i ng-effects

    Homepage

    ngfx.io

    DownloadsWeekly Downloads

    2

    Version

    9.1.1

    License

    MIT

    Unpacked Size

    1.3 MB

    Total Files

    190

    Last publish

    Collaborators

    • stupidawesome