promiseToDigest.ts 149 B

123
  1. import { IScope } from 'angular';
  2. export const promiseToDigest = ($scope: IScope) => (promise: Promise<any>) => promise.finally($scope.$evalAsync);