Obervable not completing in resolve leading route to never get activated

Not sure exactly why this is happening, but the observable is never completing. The data is being loaded in the entity and when I go check it in Redux DevTools, it is there, but it never changes the loaded value to true or hits first to complete the observable. I am using ngRx entities and […]

By MattE
Published
Categorized as angular, ngrx, ngrx-entity Tagged , ,

Typescript strict mode cannot assign Observable async to primeNg dropdown component

I am using the p-dropdown primeNg component and from what I can see this should be able to take an Observable | async value and use it properly but the Typescript strict mode will not allow this, giving error TS2322: Type ‘Customers[] | null is not assignable to type ‘any[]’" customers.html <p-dropdown [options]="customers$ | async" […]

Observable with async pipe is undefined/null in element when accessing property where select query is ran from parent component

This always ends up being undefined when the select is ran in the parent component. //parent component export class baseCardComponent implments OnInit { scorecardHeader$: Observable<ScorecardHeader>; constructor(protected store: Store<State>){} ngOnIt() { this.scorecardHeader$ = this.store.select(getScorecardHeader); } } //child component HTML <scorecard-header [header]="scorecardHeader$ | async"></scorecard-header> //scorecardHeader component HTML <div>Name: {{header.Name}}</div> <—scorecardHeader will always be undefined in this instance–WHY?? […]

By MattE
Published
Categorized as angular, javascript, ngrx, parent-child Tagged , , ,

Observable | async not maintaining data in component on return from combineLatest with 3 separate service calls

So I believe I understand what is happening…that everytime the selector is fired, it updates the entire state coming back from the ngRx store so FinData that had it’s data loaded initially now becomes undefined when FranchiseData loads. How do I prevent this from happening and simply return all of the data properly? I am […]

By MattE
Published
Categorized as angular, ngrx, rxjs Tagged , ,

waiting properly for multiple observables to return data in a route guard before canActivateChild returns true/false

I am having an issue with my canActivateChild route guard not waiting for data to come back from 3 service calls to the backend before determining whether it can activate the route or not. I have it hooked into the ngRx store and am dispatching 3 separate actions, and then using forkJoin to return what […]

By MattE
Published
Categorized as angular, angular-route-guards, ngrx-store, rxjs Tagged , , ,

Angular Material Table refreshes data once but then stops refreshing the data

I have a strange scenario occurring where I am displaying an angular material table of customer first names and last names. There is an “Add Customer Button” that pops up a modal to add a new customer in there. When you click Submit, it adds the customer to the customer array and the table updates. […]

By MattE
Published
Categorized as Uncategorized Tagged , ,

multiple radio groups inside single ng-repeat not working

I can’t figure this one out, not sure why it isn’t working. I have a situation where I need to have parent checkboxes and when those are selected, children radio buttons drop down where they need to select one item for each checkbox they have selected. This part works fine, the problem is when more […]

By MattE
Published
Categorized as javascript, radio-group Tagged , ,

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