ngParty / ng-metadata

Angular 2 decorators and utils for Angular 1.x
https://hotell.gitbooks.io/ng-metadata/content/
MIT License
355 stars 46 forks source link

AsyncPipe and `0` value #187

Closed artaommahe closed 7 years ago

artaommahe commented 7 years ago

There is error with AsyncPipe

// return cached immediately
if ( inputId in AsyncPipe.subscriptions ) {
  return AsyncPipe.values[ inputId ] || undefined;
}

this will return undefined for 0 value and must return 0

Hotell commented 7 years ago

PR are more than welcome! ;)