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.

ngModel.$setViewValue should return a promise #11423

Closed
@wesleycho

Description

@wesleycho

In the case of a debounced value update, currently $setViewValue does not allow the user to detect when the update is truly executed, resulting in a potentially premature call to $render - this affects the UI Bootstrap datepicker. If ngModelOptions has no debounce, it should then resolve immediately.

The usage should be promise based, so it can support code like

ngModel.$setViewValue('foo')
  .then(ngModel.$render);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions