You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @luistak, the build-in async pipe allows to use asyncronuous things like Observable or Promise in a template.
Source: https://angular.io/api/common/AsyncPipe
It would be nice to have a possibility to use windowed-observable the same way as usual observable and not only with subscribe. For example the next way:
import { Observable as WindowedObservable } from 'windowed-observable';
@Component({
selector: 'my-selector',
template: '<div>{{ myWindowedObservable | async }}</div>'
})
export class ExampleComponent {
myWindowedObservable = new WindowedObservable('myNameSpace');
}
@Adrian1907 I know my message comes kind of late. Did you try wrapping windowObservable in a the RXJS from() ? Don't know if it will work, but I think there's a slight chance.
Describe the feature you'd like:
I would like to have a possibility to use windowed-observable directly in a html-template via async pipe.
The text was updated successfully, but these errors were encountered: