Skip to main content
1 vote
2 answers
103 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 ...
commadelimited's user avatar
1 vote
2 answers
92 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: ...
Barney's user avatar
  • 2,868
0 votes
0 answers
25 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 ...
rolinger's user avatar
  • 3,196
0 votes
0 answers
62 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 ...
adam's user avatar
  • 482
0 votes
0 answers
36 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", ...
CranMalReign's user avatar
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 ...
randy's user avatar
  • 1,919
2 votes
2 answers
132 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: "/...
Some d's user avatar
  • 95
1 vote
0 answers
216 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 ...
Semen Shekhovtsov's user avatar
1 vote
2 answers
544 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 │ ...
ambuj151's user avatar
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 ...
Justinas's user avatar
  • 43.8k
1 vote
1 answer
143 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 ...
avishekdr's user avatar
  • 1,128
0 votes
3 answers
339 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?
Omkar Likhe's user avatar
1 vote
1 answer
37 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', []...
OrangeJuice1-'s user avatar
1 vote
1 answer
46 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 ...
Allan José's user avatar
-1 votes
2 answers
74 views

Error : NG8001: 'router-outlet' is not a known element: in Angular

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

15 30 50 per page
1
2 3 4 5
697