All Questions
2,767
questions
0
votes
1
answer
16
views
Angular 17 <router-outlet> works wrong
So i am building projects in angular and i found out that in devtools i can see my router-outlet and components are generated outside of it like that:
enter image description here
app.routes
`import { ...
0
votes
0
answers
20
views
how to load lazily loaded route in mat-sidebar-content?
I've a structure in Angular and we are following module based structure. Not standalone components.
SideBar Component
<mat-sidebar-container>
<mat-sidebar>
/* Sidebar Menu Items */
</...
0
votes
1
answer
51
views
Issue with app.MapWhen() in .NET Core routing for multiple Angular projects
I have a technical issue with the app.MapWhen() method in .NET Core for handling routes in my application.
Context
I have two Angular v15 projects serving as front-ends for my .NET Core 6 application.
...
1
vote
1
answer
35
views
Create dynamic paths in my routing - Angular / PrimeNg version
I need to create several paths dynamically in my routing since the values will be added to the sidebars through an endpoint.
By creating a new item for the sidebar, the user will be specifying the ...
0
votes
1
answer
150
views
Angular 18 falsely throwing a routing error, despite the routes previously working fine
Background:
I'm integrating a login component that includes Google authentication. Upon successful authentication, user information is obtained, a token is generated, and then sent to the backend for ...
0
votes
0
answers
34
views
Angular universal routing issue
i have problem with Angular Universal when i load homepage http://localhost:85 page loads but in view source i get
<body class="h-100 v-robots">
<app-core class="h-100"...
1
vote
1
answer
63
views
Angular 17+ Standalone Modules
I've used Angular before, but an earlier version. Can someone educate me on why my routes for my navbar doesn't work with my Contact Page.
Here is the link... https://github.com/Logan-0/ngPersonal
My ...
1
vote
0
answers
26
views
Is there any way we can use lazy loading in the routing module of the file in which we are using <router-outlet>?
I am making a page in angular v12 and i am using router outlet in one of my component so that it can be reused. There is a property (output emitter) of router-outlet known as activate that get ...
0
votes
0
answers
31
views
URL reload leading to 404
I'm developing a PWA and i'm experiencing a strange issue: my components load perfectly but if i try to reload it, i end up getting an error message. I need to first go back to a URL without component....
1
vote
1
answer
54
views
How to make protected route work in node.js
I'm working on a MEAN stack application. Where the user logs in using google oauth so i created a google oauth middleware as a function and linked it in server.js like
app.use('/protected',...
1
vote
1
answer
42
views
Angular URL has strange quote in the path
I have this strange quote that shows in the path for my angular app:
If I enter http://example.com/mywebsite
this is what I get as the route
http://example.com/mywebsite/" /auth-page
There is no ...
2
votes
1
answer
494
views
Assets folder does load on Angular 18
I was not able to load my images from the assets folder, I was using the Angular 18, after several atempts I was able to solve it.
Now on Angular 18 your assets folder needs to be on the path: public/
...
2
votes
1
answer
39
views
Refresh the page in Angular or manually entering the desired path, redirects to the home page
I am using Angular 11. My project was working fine and suddenly I faced an issue:
When I use routerlink to address a specific path, it redirects correctly to that path, but when I try to access this ...
1
vote
1
answer
27
views
Angular Loading time on menu click
When I click on the menu item it takes too much time to load
This is my app-routing-modules.ts
const routes: Routes = [
{
path: '',
children: [
{
path: 'login',
...
1
vote
0
answers
24
views
Angular 14 | app-root empty | Deploy on vercel
I deployed my Angular project to Vercel and everything seemed successful, "no errors reported". However, none of the components are loading. As I'm new to Angular, I'm not sure how to ...