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.

When using $map mode '=' the value should be available in the scope right away #45

Closed
@pavelgj

Description

@pavelgj

Right now:

class FooComponent {
  static var $map = {
    'bar': '='
  };

  FooComponent(Scope scope) {
    expect(scope.bar, isNull);
    scope.$watch(() => scope.bar, (value) {
      if (value != null) { // watcher will fire with a null the first time.
        // use the value.
      }
    });
  }
}

The value should be available on the scope before the component is instantiated.

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