rxjs operators for combining observable streams but depends on first observable response

I have below existing nested subscriptions (angular 6 project ) of streams but it depends upon the first observables response wherein it loads action from the store and then fires two subscriptions from store. this.store.pipe(select(getOrganizationDetails), takeWhile(() => this.componentActive)) .subscribe(resOrganization => { if (resOrganization) { this.organization = resOrganization; this.store.dispatch(new mangeIconsActions.LoadIcons(this.organization.id)); this.store.pipe(select(fromManageIcons.getContentIcons),takeWhile(()=>this.componentActive)).subscribe(contentIcons=>{ this.contentIcons=contentIcons; }); //loading module Icons […]

By user5769212
Published
Categorized as angular, rxjs6 Tagged ,

rxjs operators for combine response

I have below existing nested subscriptions (angular 6 project ) of streams but it depends upon the first observables response wherein it loads action from the store and then fires two subscriptions from store. this.store.pipe(select(getOrganizationDetails), takeWhile(() => this.componentActive)) .subscribe(resOrganization => { if (resOrganization) { this.organization = resOrganization; this.store.dispatch(new mangeIconsActions.LoadIcons(this.organization.id)); this.store.pipe(select(fromManageIcons.getContentIcons),takeWhile(()=>this.componentActive)).subscribe(contentIcons=>{ this.contentIcons=contentIcons; }); //loading module Icons […]

By user5769212
Published
Categorized as angular, rxjs6 Tagged ,

@Input not taking latest value after emitted from parent component

I have parent component which emittes latest value and in child component it uses @Input wheire in it does not return latest value. Basically it starts like this in child component… @Input() test;any; We do bind this test into HTML and then on click event of button we do something with input value ‘test’ onClickButton() […]

By user5769212
Published
Categorized as angular

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq