Skip to content

$viewChangeListeners are not called when the model change #146

@jvanhees

Description

@jvanhees

The functions in the $viewChangeListeners are not called, only when selecting the last checkbox. Now this behaviour originates from the use of ng-repeat, but I think we should be able to solve this in 'checklist-model'. The $viewChangeListeners are invoked when $setViewValue is called to change the view value, which currently isn't used in the directive.

Fiddle highlighting the issue (and also shows the issue with ng-repeat and radio buttons):

https://jsfiddle.net/TheJVH/cbdwwhmp/9/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions