angular-ui-router Questions

4

I would like to provide a path that redirects to a given page based on query parameters. For example: /redirect?page=hero&id=1 should redirect to: /hero/1 Is there any way to do this in t...

2

Solved

I was upgrading my angular apps which run inside the Share Point office adds in. Currently angular app is using version 14, after I upgrade to angular 15 it works fine. But as soon as I upgrade to ...
Grigson asked 16/10, 2023 at 21:56

12

Solved

I have built an app that uses router 3.0.0-beta.1 to switch between app sections. I also use location.go() to emulate the switch between subsections of the same page. I used <base href="/"> a...
Domash asked 24/8, 2016 at 20:44

6

Solved

This is my code: import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { NgModule } from '@angular/core'; import { BrowserAnimationsMo...
Licence asked 13/5, 2019 at 10:27

3

I'm writing a dropdown nav in bootstrap and angular with angular-ui-router. When a link has a dropdown, the link should be blank. But if I pass a blank route to ui-sref I get an error. Here's a co...
Sinuation asked 20/3, 2014 at 20:39

3

In my angular app I redirect to the login page if the user is not logged in, it works, but the test with jasmine and karma fails with this error: Invalid provider for the NgModule 'DynamicTestModul...
Luggage asked 27/5, 2022 at 17:49

12

I am using ag-grid to bind values from a list, Is it possible to copy the value/data in the selected cell. I have tried to copy the value using ctrl+c but its not working is there any other way? P...
Unrig asked 1/3, 2016 at 11:15

3

Solved

I have a problem with filling all available space with the router-outlet. I use angular/flex-layout for my application. And the component loaded with the router doesn't take all available place. ...

9

I have created one router link as below. This router link loads ProductsStartComponent and then this component loads several other components using ngif and not via navigation. Since below Product ...
Colorimeter asked 10/8, 2017 at 7:24

3

Solved

I am using Angular 13 and created a myapp.mainrouting.js file and trying to declare loadChildren as below: import {CustomerAppHomeComponent} from "../Home/CustomerApp.HomeComponent"; impo...
Interglacial asked 11/12, 2021 at 6:19

2

Solved

I have 2 components: HomeComponent and CityComponent. They do not have any relationship. After navigating back to the HomeComponent, the state of the CityComponent is lost when I navigate to it aga...
Americana asked 22/1, 2020 at 14:1

15

Solved

I am migrating my AngularJS based app to use ui-router instead of the built in routing. I have it configured as shown below .config(function($stateProvider, $urlRouterProvider) { $urlRouterProvide...
Gaut asked 22/5, 2014 at 17:31

2

Solved

this problem appeared only after upgrading to angular 15, I am passing a state property to the router but this.router.getCurrentNavigation() is returning a null value, that has been passed by route...
Teufert asked 14/12, 2022 at 15:38

3

Solved

All help articles on this error for Angular say to make sure one has injected 'Router' like this: constructor(router: Router.... Which I have done. I'm unsure what else to do. I have to fix this be...

4

I want to change the title of the page whenever I click or browse the link from the URL bar. How to change that using Angular route? I am using angular version 4 and angular cli.
Jehad asked 16/5, 2017 at 11:24

10

Solved

Currently our project is using default $routeProvider, and I am using this "hack", to change url without reloading page: services.service('$locationEx', ['$location', '$route', '$rootScope', funct...
Doubleripper asked 10/5, 2014 at 18:56

3

Solved

Ionic 4 now uses Angular router. Altough it still has its own NavControler, which helps to simulate push / pop navigation style though the navigateBackward and navigateForward methods. So that ion...
Heliozoan asked 3/1, 2019 at 23:29

5

I am trying to follow this tutorial http://onehungrymind.com/named-router-outlets-in-angular-2/ but I am getting the error. EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL ...
Gigue asked 18/3, 2017 at 16:54

5

Solved

Module build failed: Error: Cannot find module 'node-sass' Also run the commands, sudo npm install node-sass --save sudo npm rebuild node-sass --force Still showing the same error. Anyone pls h...
Prolate asked 7/9, 2018 at 4:57

3

Solved

My project user angular version 7, and here is the angular.json configuration when I build for production my main.js file is way too large nearly 12MB in size which makes my app to load the page ...
Cirque asked 23/4, 2019 at 2:0

1

Solved

I was reading the angular documentation and I came across this option: From the ContainerComponent, you should be able to navigate to AComponent using the following routerLink, but it will not wor...
Thessa asked 15/1, 2021 at 10:51

3

Solved

Is there a way to see all of the states that have been set on $stateProvider? In this case, I would like my state assignments to be distributed across many files. I would like to inspect the built...
Perla asked 5/2, 2014 at 23:1

2

Solved

I want to display the name of the route in the app.component.html template. I'm looking for a simple solution, something that can be written like this: {{router.currentRoute.name}} My current ro...
Kisumu asked 4/8, 2016 at 9:44

4

I am integrating ui-router2 with angular2-rc-4 but i am getting Error: Invalid provider - only instances of Provider and Type are allowed, got: [object Object] Following is the bootstraping c...
Gilbye asked 10/8, 2016 at 13:18

1

Below is the issue that I am facing and needs some help. Initial problem: I have a tomcat server where I have deployed three angular projects (inside the web apps folder). When I start the Tomcat s...
Dioptrics asked 19/9, 2020 at 13:18

© 2022 - 2025 — McMap. All rights reserved.