Questions tagged [angular-resolver]
135 questions
0
votes
1 answer
Angular Resolver not working no provider for ()
I have this issue in a new project.
I have created a route:
const routes: Routes = [
{
path: '',
component: CategoriesComponent,
},
{
path: ':categoryId',
component: CategoryComponent,
resolve:…

r3plica
- 13,017
- 23
- 128
- 290
0
votes
1 answer
Angular Resolver seems not to update object
Good evening, I need a second pair of eyes, I' am not able to find the issue.
I have a java (Dropwizard) based REST Service that exposes the following service.
@GET
@Path("{personId}")
public Response getPerson(@PathParam("personId") OptionalLong…

user2402987
- 43
- 1
- 3
0
votes
1 answer
Resolver not returning Firestore's data to load a component in Angular
I'm trying to lazy load a component and I've following this Angular Guide (Angular Guide: Preloading component data), but I'm even don't getting data back from the resolver and so the component isn't being shown. Let's to my flat simple…

dixavier27
- 66
- 8
0
votes
2 answers
Angular component loading before resolve service
I am trying to load application level variables using API from the backend which will be used throughout the application. For the same I have using resolver but still that service is not getting loaded before any component is loaded, here is my…

Vanshita Khatri
- 23
- 9
0
votes
1 answer
load data in child component using resolver after data updated in the component
i have a component 'update_profile' in angular which loads data using resolver service.
i am also calling 'update_profile' in another component 'complete_profile' using the selector. i am initiating the component by ngIf when editing is required.
to…

shubh kr
- 21
- 6
0
votes
2 answers
Angular Resolver- Prevent subsequent requests until first resolves
I have a UserProfileResolver to provide data to a UserProfileComponent. I noticed i can click the navigation link a bunch of times sending a ton of HTTP requests.
Is there a standard way to prevent subsequent requests from being made until the…

Ricardo Saracino
- 1,345
- 2
- 16
- 37
0
votes
1 answer
Angular route loading with async redirect
I need to wait for some API call before letting page in my route to load. Basically we have A/B testing enabled (which is API call) and based on that will have to either load Component assosiated with that route or redirect to different url.
To do…

Andrei V
- 1,468
- 3
- 17
- 32
0
votes
1 answer
Angular - Resolvers and Guards
in my app, I'm resolving the user from the BE after login. I would like to navigate to certain init page base on the role of the user. I have tried doing this with a can activate guard, but because guards are being calculated before resolvers, my…

יובל צרפתי
- 69
- 2
- 7
0
votes
1 answer
Angular: HTML page finishes rendering before images are loaded from backend
I'm programming a website that displayes some products and each product has an image.
For this I have to do 2 things: 1.) load the products from backend. 2.) load the images from backend.
Right now the images don't get shown, because while loading…

Boommeister
- 1,591
- 2
- 15
- 54
0
votes
1 answer
Service Undefined on refresh in Angular 9 Application with resolver in routing
I´ve got a Component which loads user data and should be able to handle direct accessing via url.
My idea was to implement a resolver service in the router, which is allready working fine when accessing the component via routing through the…

Zytro
- 15
- 4
0
votes
1 answer
Resolver with Auxiliary routing
My new Angular has a Dashboard with 3 widgets. For one widget (PreviousInquiriesComponent) I want to add a resolver such that that widget is not displayed until data for it is ready.
children: [
{
path: '',
component:…

Malindu Sandaruwan
- 1,477
- 2
- 13
- 27
0
votes
1 answer
Angular 8 resolver is not resolved
I have console.log in constructor and ngOnInit() of Resolver but which are not logged.
resolve:{serverResolver:ServerResolverDynamicDataService}},
console.log("ServerResolverDynamicDataService…

sunleo
- 10,589
- 35
- 116
- 196
0
votes
1 answer
How to use Angular 8 resolver with typescript?
I am trying to make an application just like pastebin.com where i can use syntax highlight. Now i am trying to make the share file method. I am getting all the data from an .NET Core API, and the response are exactly what i need.
The problem is when…

Eduard
- 83
- 6
0
votes
1 answer
Loading data before AppComponent.ngOnInit is called
In my Angular 8 project, I have a UserService that requests the current User from the server using HttpClient and asynchronously assigns the response to its public user field. I inject a UserService into AppComponent and in its ngOnInit I copy…

kol
- 27,881
- 12
- 83
- 120
0
votes
1 answer
call resolver function one more time
in routing I have next:
{path: 'modules', component: ..., resolve: { modules: ModulesServiceResolver},
{path: 'modules/:id', component: ...}
and when I return back from child component - resolve not called one more time?
array of modules, which I…

Andryxa Piddubnjak
- 101
- 6