Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Directive & binding will not return promise object. Ok in RC1, broken in RC2 #4214

@georgiosd

Description

@georgiosd

When binding a scope '&' binding to a directive, the behavior has changed from RC1 to RC2/latest snapshot and seems broken.

Consider this action:

$scope.action = function() {
      var deferred = $q.defer();
      console.log('this is called');
      return deferred.promise;
    };

RC1 will print promise object returned (please have console open): http://plnkr.co/edit/2U6OX0
RC2 will print undefined: http://plnkr.co/edit/iONi7F

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