Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
1 vote
2 answers
109 views

Angular: 18.2.13 Jest: 29.7.0 I'm unit testing a method in my component which performs a router.navigate after a successful HTTP call. Note that I've removed some of the unncessary code for brevity ...
commadelimited's user avatar
1 vote
2 answers
94 views

Given the following routes: export const routes: Routes = [ { path: "test-1/:name", component: TestComponent, title: "Main 1" }, { path: "test-2/:name", component: ...
Barney's user avatar
  • 2,868
0 votes
0 answers
25 views

When using web inspector on chrome/android or safari/iphone my app will launch just fine and I can inspect everything. However on certain occasions, especially on Safari, app startup console messages ...
rolinger's user avatar
  • 3,196
0 votes
0 answers
64 views

I am trying to make a project manager in angular and host it with cloudflare. I can't get my login page to come up. The console gives me this main-NTC3P324.js:7 ERROR TypeError: Cannot read properties ...
adam's user avatar
  • 482
0 votes
0 answers
39 views

We have a module-based A19 application which has a root component/module and a relatively deep tree of child routes/modules. app-routing.module.ts: const routes: Routes = [ { path: "foo", ...
CranMalReign's user avatar
1 vote
0 answers
17 views

When I click on the $ctrl.showSubmissions() it shows the login screen instead of the submissions page. I have console.logs and it appears the auth is OK, it does not seem to be routing correctly. All ...
randy's user avatar
  • 1,919
2 votes
2 answers
137 views

I have an angular js/angular 18 hybrid application which is working, but what I am trying to do is migrate the routes of the customer users like this: .state('customer', { url: "/...
Some d's user avatar
  • 95
1 vote
0 answers
221 views

Somehow, the live reload (when any code is changed) causes routing issues. I've spent couple of hours investigating this, however couldn't understand what is going on. Here is what happens: When I ...
Semen Shekhovtsov's user avatar
1 vote
2 answers
550 views

X [ERROR] TS-996008: Component TasksComponent is standalone, and cannot be declared in an NgModule. Did you mean to import it instead? [plugin angular-compiler] src/app/app.module.ts:13:4: 13 │ ...
ambuj151's user avatar
0 votes
0 answers
36 views

We currently have this dynamic routing (don't mind sytax errors, transformed from CoffeeScript by hand): angular .module 'App' .config(function ($stateProvider) { $stateProvider ...
Justinas's user avatar
  • 43.9k
1 vote
1 answer
144 views

I'm trying to block the RouteReuseStrategy based on some conditions but this is not happening. I've a route name as comp-a which is called in two different ways. 1 time is from a back button and the ...
avishekdr's user avatar
  • 1,146
0 votes
3 answers
386 views

Is there a way to run my backend Spring Boot project along with the Angular frontend, without starting a separate Angular server? Can I deploy the entire application on the backend server only?
Omkar Likhe's user avatar
1 vote
1 answer
37 views

In our module we have a custom method defined that essentially adds on more functionality to $stateProvider... (function () { 'use strict'; angular .module('someModule', []...
OrangeJuice1-'s user avatar
1 vote
1 answer
46 views

I am having a problem: at first I was trying to log in to connect with main, but while I moved, the following error appeared, which I could not solve in any way. NG8001: 'router-outlet' is not a known ...
Allan José's user avatar
-1 votes
2 answers
74 views

I am getting below error: NG8001: router-outlet is not a known element: If router-outlet is an Angular component, then verify that it is part of this module. If router-outlet is a Web Component then ...
shakira's user avatar
2 votes
1 answer
5k views

I am currently exploring angular 18 and noticed that sometimes when the app is routed to a component and not on the homepage; If I refresh, it takes me back to the home page instead of reloading the ...
Great Efue's user avatar
0 votes
1 answer
116 views

I want to know how to manually reload an active menu item of PrimeNG. I know that there are ways to reload the current component manually but i want to know if there's any method implemented by ...
Erik Vasilyan's user avatar
-2 votes
1 answer
183 views

I am experiencing an issue with my Angular 18 application hosted on Azure. When accessing the application at the URL yyy.net (free plan), it correctly redirects to yyy.net/home. However, when I ...
mateus andrade's user avatar
1 vote
0 answers
377 views

In my Angular16 standalone app I want to implement a RouteReuseStrategy and add it only to specific components. I found some solutions that implied using some extras (eg https://stackoverflow.com/a/...
Andrei Manolache's user avatar
0 votes
4 answers
80 views

<div class="mr-3 ml-3 mt-0 mb-4 leave_card_outer" *ngIf="leaveStatus !=null"> <div class="row bg-white p-2"> <div class="col py-3 ...
Dikshith's user avatar
2 votes
1 answer
144 views

Summary I want to redirect in my Angular RoutingModule from one path to another while maintaining the query params. However, when the redirect completes, the query params are not present anymore. The ...
times29's user avatar
  • 3,461
1 vote
1 answer
86 views

I have created and application with Login Functionality and want to get the logged In user name in the components Service File: login({ username, password }: any): Observable<any> { if (...
papun's user avatar
  • 13
1 vote
1 answer
724 views

I am working on an Angular 17 project and need to simulate the "Empty Cache and Hard Reload" feature that browsers offer. Essentially, I want to force a full refresh of the application, ...
Mohamed shehab's user avatar
0 votes
0 answers
28 views

Is it possible navigate directly to Angular routes with path parameters through the browser? I want to access my chart component directly from the browser using link like this "http://localhost:...
mathan mohan's user avatar
0 votes
1 answer
71 views

In angular app I have hundreds of dynamic routes. Which are added in route config after an API call. But when I reload the same page with dynamic route, browser send the request to server and return ...
Shivansh Chouhan's user avatar
1 vote
3 answers
505 views

I have a very simple angular 17 application, and i got problems with routing to child routes. All components are standalone. this is how my app.routes.ts looks like: export const routes: Routes = [ {...
solarenqu's user avatar
  • 834
1 vote
0 answers
235 views

I'm facing an issue with routing in my Angular application. When I directly copy and paste a URL into the browser (e.g., https://myapp.dev/material-details/bd3d31dd-945a-4faf-a888-be43204d6a85/...
Kristijan Nikoloski's user avatar
0 votes
1 answer
47 views

I have Angular navigation item component: <div(click)="handleToggleDropdown()"> <a[routerLink]="route">{{ text }}</a> </div> import { Component, Input } ...
Nataša Kunić's user avatar
0 votes
2 answers
145 views

I use the service socket.io to emit and receive data. When the send button is clicked, it emits data and shows FENEmitInfo, then receives the data and shows FENSocketioGetCnt and FENSocketioFilterCnt. ...
user9427453's user avatar
0 votes
0 answers
36 views

In Angular 18, I see you pass the data back to the resolver and the page can load the data. However, on 'MOST' all calls, something like this is going on storing the data into something like a ...
Dean Hiller's user avatar
  • 20.4k
1 vote
2 answers
113 views

I have created a menu, breadcrumbs, with components and their children. The problem is that I see the first child perfectly with but when I open a child of that child (grandchildren so to speak) the ...
Pedro Madrigal's user avatar
1 vote
0 answers
39 views

I'm working on an Angular application with lazy loading for the dashboard screen. I've encountered an issue where the submenu is not functioning properly when the dashboard is loaded lazily. Below is ...
Sumit Singh's user avatar
1 vote
2 answers
100 views

So I have Ng routing for Angular18 configured as below for app.routes.ts which is default routing import { Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; ...
Binary Dharma's user avatar
0 votes
1 answer
50 views

const routes: Routes = [ { path: "admin_login", component: AdminLoginComponent }, { path: "login", component: LoginComponent }, { path: "owner", component: ...
emir gicic's user avatar
1 vote
1 answer
68 views

Kind of new to Angular (17) This is my app structure --app.routing.modules.ts --app.component.ts ------module1.routing.module -------------module2.routing.module -------------module2.component.ts -----...
Alejandro Martinez's user avatar
0 votes
0 answers
47 views

I am trying to set up a runtime configuration value for a URL in my angular project how it is outlined in this thread, and I can't seem to figure out why i am getting a NullInjectorError: ...
Joshua Holden's user avatar
0 votes
1 answer
452 views

I am creating a project in Angular 18. For now, I am only working on the frontend, but I need to create a "test" login. The problem I have is that the navbar was showing in my "login&...
Daniel Valverde's user avatar
1 vote
1 answer
193 views

In my app.routes.ts, export const routes: Routes = [ ... { path: "student", component: StudentComponent, children: [ { path: "first-component", ...
nikita's user avatar
  • 21
1 vote
1 answer
47 views

export function getApiKey(config: WebConfigService): Promise<boolean> { return new Promise((resolve, reject) => { config.getConfigLoaded().subscribe(key => { if (key) { ...
sumit mali's user avatar
1 vote
1 answer
469 views

I have a routing file written as below: { path: "student", component: StudentComponent, canActivate: [authenticationGuard], data: { role: "student", ...
nikita's user avatar
  • 21
1 vote
1 answer
39 views

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', ...
Abdul's user avatar
  • 33
0 votes
1 answer
40 views

Error Code I have tried everything but failed to resolve I am using same selector but not resolved It should display label, input box and button. I have tried the solutions given but not resolved my ...
Dolly's user avatar
  • 1
2 votes
1 answer
87 views

Im unable to redirect to /user pleas help here is the AuthGuard where I have subscribed to an authService.authSubStatus that emits a boolean import { inject, Injectable } from '@angular/core'; import {...
Mathew Francis's user avatar
-1 votes
1 answer
23 views

I'm getting strange behaviour. My parent URL has this. ProjectsComponent HTML snippet <a [routerLink]="[contract._id]">{{ contract.name }}</a> Scenario 1 When I navigate to the ...
Sachin's user avatar
  • 569
0 votes
3 answers
592 views

login.components.ts: import {Component, OnInit} from '@angular/core'; import {FormBuilder, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms"; import {AuthService} from &...
Yehor But's user avatar
1 vote
2 answers
302 views

I have a problem where ngOnInit doesnt get triggered when i refresh the page or when i try to directly access my url knowing i havent implemented any kind of protection or any kind of guards. meaning ...
Marwan Abu Ahmad's user avatar
0 votes
0 answers
42 views

I have the following routes definition: { path: 'clients', loadChildren: () => import('@app/domains/clients').then((m) => m.WebClientsModule,), }, Then inside the WebClientsModule,...
frankfullstack's user avatar
1 vote
1 answer
353 views

Initially I had implemented a single module per component, and module-based lazy-loading in my app. At that time my main.js bundle size was 2mb. Now I converted to all standalone components and ...
Tanushree Bhattacharji's user avatar
1 vote
0 answers
76 views

Problem : - The second named router outlet(chat Area) in the router module is not rendering but the URL works fine. The UI idea is inspired from the vscode. which is : - the icons from the left side ...
sabareesh-10108's user avatar
3 votes
1 answer
350 views

Could anyone help me with implementing a steps component in a dynamic dialog in primeng. I am working on a sample project where I need to implement login screen in a dialog box that includes multiple ...
shashank hr's user avatar

1
2 3 4 5
209