Skip to content

Support of manual updating of the binding #100

Open
@pjfsilva

Description

This is a bit weird to ask for because bindOnce is supposed to be that: bindOnce :)

But in my case I want to improve overall performance using bindOnce but have a way to manually flag the values to be reprocessed sometimes.

My use case is that I have a large table with many rows where the columns use some filters and expressions. The table can use bindOnce after the initial load but I'm also receiving updates for it's data. I want to be able to "signal" the table to be updated and then stop again the watchers.
The problem with 2 way binding is that for every dirty model checking angular is running all my table filters and expressions which can take a bit of time.

Basically I want a manual control for the binding to work: it should only re-bind when I explicitly call some function or something like that.

This is a good idea for this:
https://github.com/kseamon/fast-bind/blob/master/src/directives/bind-on-notify/bind-on-notify.js

Do you predict the support for these kind of things?

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