A lightweight extension for AngularJS $route service which supports tree-like nested views and routes, and advanced flow handling.
Questions tagged [angular-route-segment]
53 questions
0
votes
1 answer
Angular-routing: Routing link in html-template can't be matched with a route defined in the routing-modules
I have one question regarding routing (multiple routes inside the module, lazy loading).
Suppose I have 2 modules
1-app.routing.module.ts
2-user.management.routing.module.ts
Inside the app routing module file, I have
const appRoutes: Routes = [
{…

Magi
- 49
- 1
- 9
0
votes
1 answer
How to deploy Angular Universal project to virtual directory in plesk
i want deploy angular universal project in my domain virtual directory but issue is that when i deploy project it not load any css js(asssets) and inner pages
e.g domain.com/virtual directory but when open it not load its assets saying not…

Adeel Murtaza
- 11
- 3
0
votes
0 answers
Angular routerModule with children
I am trying to implement a component with children compents using
router-outlet tag and routerModule from Angular.
The issue with the angular RouterModule. For some unknown reason, having more than 2 children for a parent component does not work.…

Nesan Mano
- 1,892
- 2
- 26
- 43
0
votes
1 answer
Angular 5 Lazy Loading Route Module with Children
I'm having a really difficult time trying to figure out why the TEST 1 children aren't loading the current component
Test1ListComponent view displays after I route to Test1ChildComponent. The URL changes, but Test1ChildComponent view does not…

Davis
- 2,937
- 3
- 18
- 28
0
votes
1 answer
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'edit/2'
I have a simple app working with angular4, but I got the following error:
:1440 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'edit/2'
Error: Cannot match any routes. URL Segment: 'edit/2'
at…

dEs12ZER
- 788
- 4
- 24
- 51
0
votes
1 answer
Angular 5 routing cannot match url segment
We have an app with the following URL.
http://localhost:8080/myapp/#/route1
My routing configuration for the same is as follows
export const routeConfig = [
{
path: 'myapp',
children: [
{
path: 'route1',
loadChildren:…

Maverick
- 484
- 2
- 9
- 20
0
votes
0 answers
Angular 4 Routing not working after hosting to web server
Routing Component
I have created 6 routing app for my web app. It is working normally on localhost, but when I try to load a URL after hosting server it finds 404 error.
For Example;
when I tried to access an URL using my…

Sreejesh T S
- 89
- 2
- 4
- 12
0
votes
1 answer
Angular2 canActivate change route param and navigate
Is it possible to change only the route param of a route and navigate in Angular2?
Route Config
{
path: 'route1',
redirectTo: 'route1/details',
pathMatch: 'full',
},
{
path: 'route1/:id',
component: Route1Component,
…

Pratap A.K
- 4,337
- 11
- 42
- 79
0
votes
1 answer
Angular Routing and Bootstrap Navbar
I have problems getting the bootstrap navbar + angular routing to work. I don't understand what is going on since a very similar code on another app is working.
I have the following html in my index.html
…

Stef
- 644
- 1
- 8
- 25
0
votes
0 answers
Angular 1.6 NestedRoute (Single Page Application)
I am trying to have single page application in agularjs 1.6 using ngRoute.My code is as follows.
Angular Code
let mainAngularModule = angular.module("acc-management",…

Bhushan Khaladkar
- 420
- 1
- 7
- 20
0
votes
1 answer
Angular2 child routes
I have root module and a child module in angular2, both has its own routes defined.
In child module am configuring RouterModule as
RouterModule.forChild(ROUTES)
In root module(parent) , am configuring RouterModule as…

sudharsan tk
- 494
- 6
- 14
0
votes
1 answer
Angular nested route not loading properly
Issue #1
I'm trying to customize the angular-route-provider example for myself.
I'm trying to implement individually separated tabs for each element in Section 1.
My section #/section1/hs(hs.html) still implements the #/section1/hs/X instead of…

Jamshed Qureshi
- 15
- 3
0
votes
1 answer
Run document.ready with angularjs routes
I am trying to run the function .parallax() from Materialize framework using routes in the angularjs. I already config the command document.ready for each template but this doesn't work. This works just in the first time. What is the best way to…

Vinícius Biavatti
- 456
- 4
- 14
0
votes
2 answers
pass value from one different app module controller to another app module service using $rootScope in angularjs
I am doing project in angularjs,my requirement is need to pass value from one different app module controller to another app module service using $rootScope
Here my part of code
Login module and controller
var loginApp =…

Karthik KM
- 33
- 2
- 10
0
votes
1 answer
AngularJS 1.4.8 $locationProvider.html5Mode does not help to remove hash
I'm using AngularJS 1.4.8. As it's sayed at the tutorial, I've created routing rules:
alphApp.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
…

Dmytro Duplyka
- 332
- 2
- 14