Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Renaming the Scope.watch readOnly argument #739

Closed
@vicb

Description

@vicb

When adding a watch, there is a readOnlyargument. The effect of setting readOnly to true is that the watch expression will be evaluated in the flush phase rather than the digest phase.

It should be used when the watch could not result in updating the model and lead to better performance as the expression it evaluated only once instead instead multiple time until the digest converges.

We have been discussing with @mhevery about renaming this argument.

Potential candidates:

  • flushPhase
  • canChangeModel

The former describes more the implementation, the latter has my preference.

Thoughts ? Any other proposal ?

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