Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
149 views

I have an Angular 19 app and I am trying to add a route title resolver that gets the page title by looking up some data in the results of an Observable. The issue is that when the app first loads, the ...
Chris Barr's user avatar
  • 34.6k
1 vote
0 answers
49 views

I have an inconsistent navigation issue when authenticating on my website. On authentication from the login page, there is a navigation to the home page (auth only). On occasion, the navigation fail, ...
Jules Charlet's user avatar
1 vote
0 answers
138 views

I'm having a route /invoices/:invoiceId for an invoice detail view which needs to be protected with 2 conditions User needs to be authenticated --> Redirect to login page Invoice with given id ...
schaenk's user avatar
  • 721
0 votes
0 answers
68 views

I'm interested in adapting the following code for route resolvers. private categorySubject = new Subject<number>(); categorySelectedAction$ = this.categorySubject.asObservable(); ...
IMOsiris's user avatar
  • 155
2 votes
1 answer
447 views

I have this scenario: I am saving the query params in a service in order to keep alive this data if the user close the browser, using the resolvers I am using the result from the active route to add ...
Tabares's user avatar
  • 4,355
0 votes
2 answers
301 views

I have a lazy loaded module with all it components declared and routes added in RouterModule.forChild() but some of these routes have their resolver that will prefetch some data And call a service to ...
mohamed hassan's user avatar
1 vote
2 answers
1k views

In the past I can use a class based resolver where I can inject HttpClient in the constructor, but that's been deprecated Source. I'd like to make an HTTP get request in a functional resolver. How do ...
Jerome's user avatar
  • 884
0 votes
0 answers
2k views

[SOLVED] Original : export enum RecipeActions { SET_RECIPES = '[RECIPES] SET_RECIPES', FETCH_RECIPES = '[RECIPES] SET_RECIPES', // MISSED THIS ADD_SINGLE = '[RECIPES] ADD_SINGLE', ADD_MULTI = '...
leroyv's user avatar
  • 133
14 votes
1 answer
18k views

I'm really new to angular and this is the first project I'm creating. what I need to do here is create an add-editClient component and use the angular resolve method to get data from the backend which ...
codinggirl23's user avatar
2 votes
1 answer
1k views

I am new to coding, and I want to start using Angular on my M1 MacBook. The installation of Angular cli was only somewhat successful, as I got this warning after typing sudo npm install -g @angular/...
Carl Emil Zeidler's user avatar
1 vote
1 answer
554 views

I have a resolver which uses the url to fetch the parent called a bubble, for the reply that I then want to fetch based on the URL. Problem is that my findReplyByUrl() function wont wait for the DOCID ...
nuccio's user avatar
  • 363
0 votes
0 answers
95 views

I'm writing an angular app in which it initially sets an array of movies into my app state. I do this via a Ngrx action and get the movies through a http request in the relative effect to that action. ...
Mister Killuminati's user avatar
-1 votes
1 answer
702 views

I am building a resolver that is used when my app loads initially. I need to run several HTTP requests, which can be run at the same time (hence using forkJoin). But there are a few that need to be ...
ts1993's user avatar
  • 109
1 vote
0 answers
762 views

When you log in you should be redirected to the dashboard page. When we navigate to the dashboard we are going to do a resolve so that the data is already loaded even before we can see the page. When ...
Gilles's user avatar
  • 11
0 votes
1 answer
425 views

I am attempting to inject dynamic templates into my tinyMCE configuration prior to loading the element. The reason for this is because I want my users to save templates on their own and be able to ...
lildakota's user avatar
  • 127
0 votes
0 answers
139 views

I have my resolver.ts return this.wardrobeStateServ.init(this.categoryIndexes).pipe(take(1), map((value) => value)); and my init function init(categoryIndexes: number[]): Observable<...
Ludovic Noel's user avatar
0 votes
2 answers
3k views

I defined a resolver in my Angular (v13) app to do some shenanigans with a wordpress backend. When the user accesses an URL I want the resolver to check post type and ID from wordpress and route ...
Morysh's user avatar
  • 71
1 vote
1 answer
325 views

Does it matter where the resolver exists in Angular in these two examples? Both of these two snippets of code achieve the same result: Placing the resolver at the module-level within AppModule: const ...
keldar's user avatar
  • 6,272
0 votes
1 answer
1k views

I have a status box which is it’s own component. On my app there are multiple instances of this status box component as you can see from the image below: The details of each status box are stored in ...
SneakyShrike's user avatar
0 votes
1 answer
116 views

I am trying to load a video url after the data be loaded from the server. I am using a resolver but it doesn't work because the video is loaded before the data some times. What I am doing wrong? ...
beanic's user avatar
  • 569
-1 votes
2 answers
601 views

here is my ngOnInit in my component - ngOnInit() { this.route.queryParams.subscribe( (params) => { console.log(params); } ) } here is my resolver - class ...
blablalbla3233's user avatar
0 votes
2 answers
826 views

I'm using a resolver to get information to populate my website. And I want to test the connection to the API to get the information so that if I don't get a response, I can call a local set of mocked ...
Dairelys García Rivas's user avatar
0 votes
1 answer
2k views

Angular is not resolving my route parameter and I don't understand why.... GAH. This is my routes file for the lazy module; import { NgModule } from '@angular/core'; import { RouterModule, Routes } ...
Ed Stephenson's user avatar
0 votes
1 answer
1k views

So, I'm trying to get this data into a component before it begins to load so I can set some things before the view loads. But I'm confused as to how this resolver works, what it returns and how to ...
Someguy's user avatar
  • 414
0 votes
1 answer
2k views

I have this issue in a new project. I have created a route: const routes: Routes = [ { path: '', component: CategoriesComponent, }, { path: ':categoryId', ...
r3plica's user avatar
  • 13.5k