Skip to content

The effect() is unable to detect the changes made by the createSignal() function. #655

@a1031101978

Description

@a1031101978

//ts
import {effect} from '@angular/core';
import { createSignal} from 'ngxtension/create-signal';

state = createSignal({ a: 555 });

constructor() {
effect(() => {
console.log(this.state.value.a)//There is no change in the printed result based on the modification of matInput.
})
}

//html

See
<input matInput type="number" [(ngModel)]="state.value.a">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions