10,440 questions
0 votes
1 answer
57 views
Angular throws error on auxilary routing with lazy loading and params navigation
today I'm trying to create a simple chat page with chat list and chat window. I tryed to implement it with auxilary routes, but some weird error stopped me. CONTEXT: I have an application - folder ...
1 vote
2 answers
117 views
Unexpected result when unit testing router.navigate's toHaveBeenCalledWith method
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 ...
1 vote
2 answers
100 views
How can I mix primary and named outlets in nested navigation?
Given the following routes: export const routes: Routes = [ { path: "test-1/:name", component: TestComponent, title: "Main 1" }, { path: "test-2/:name", component: ...
0 votes
0 answers
29 views
Cordova UI Router not reloading when using web inspector manual refresh to reload app
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 ...
0 votes
0 answers
64 views
Can you use an angular standalone component to import a module that contains your whole app
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 ...
0 votes
0 answers
44 views
Root component ActivatedRoute route tree disconnected from child routes?
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", ...
1 vote
0 answers
17 views
using Angularjs 1.8.3, my menu item showSubmissions shows the login screen instead of the submissions page
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 ...
2 votes
2 answers
138 views
Angular JS Angular 18 hybrid routing
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: "/...
1 vote
0 answers
222 views
Angular 18 live reload routing issues
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 ...
1 vote
2 answers
566 views
Component TasksComponent is standalone, and cannot be declared in an NgModule
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 │ ...
0 votes
0 answers
36 views
AngularJS UI-Router dynamic resolve list
We currently have this dynamic routing (don't mind sytax errors, transformed from CoffeeScript by hand): angular .module 'App' .config(function ($stateProvider) { $stateProvider ...
1 vote
1 answer
149 views
Angular: How to block RouteReuseStrategy based on condition?
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 ...
0 votes
3 answers
442 views
Spring Boot integration with angular
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?
1 vote
1 answer
41 views
How to mock AngularJS module config providers
In our module we have a custom method defined that essentially adds on more functionality to $stateProvider... (function () { 'use strict'; angular .module('someModule', []...
1 vote
1 answer
47 views
Loading a page throws "NG8001: 'router-outlet' is not a known element"
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 ...