This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular | |
.module('asyncFilter', []) | |
.filter('async', function() { | |
const values = {}; | |
const subscriptions = {}; | |
function async(input, scope) { | |
// Make sure we have an Observable or a Promise | |
if (!input || !(input.subscribe || input.then)) { | |
return input; |