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.

Allow attribute mappings to set "canChangeModel" and "collection" on Scope.watch() #1193

Open
@jbdeboer

Description

@jbdeboer

We want to discourage calling Scope.watch() from within a directive. There are a few places that we call Scope.watch() from Angular core directives:

  • ngClass
  • ngModel

In both cases, we can't use attribute mappings (e.g. NgOneWay()) because we need to set either canChangeModel or collection on Scope.watch().

Attribute mappings should be able to set these parameters as well.

First, we need a syntax that directives can use.
Second, we need to implement that syntax.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions