All Questions
Tagged with angularjs-routing angular
15 questions
0
votes
1
answer
66
views
images not loading when changing base url in angular JS project
I want to change the base url
when load the application url is http://localhost:4200/#/ I want to change this to http://localhost:4200/carrom/.
For doing this I changed base url to then loading url ...
1
vote
1
answer
2k
views
routerLinkActive matching routes with different query parameters
This code generates a handful of links like
/reports
/reports?collection=foo
/reports?collection=bar
All the links are shown as active. How can I show only the one exact link as active?
<li [...
1
vote
0
answers
368
views
Routing issues in rendering AngularJS components from Angular2 routes
I have a Hybrid(Angular1 and Angular2) repo which having mix of Angular1 and Angular2 routers. Followed the sample from https://vsavkin.com/migrating-angular-1-applications-to-angular-2-in-5-simple-...
0
votes
2
answers
204
views
Routes When Importing Not Working
I am currently attempting to add routing to my Angular 2 project. All of the components work, but when I add 'appRoutes' to my imports on app.module.ts , an error gets thrown saying
Uncaught ...
2
votes
1
answer
2k
views
Auth0 redirecting back to call url after login angular2
After login the auth0 redirects me back to the call back url on angular2. How can i make it go to the path that i gave to the routing without redirecting to the call back url.
2
votes
0
answers
219
views
How to route to Angular 2 component from Angular 1 app?
So I have Angular 1 app. And I have Angular 2 component; let's say Heroes Dashboard, dashboard.component.ts from https://angular.io/docs/ts/latest/tutorial.
In Angular 2 router specified as list of:
...
0
votes
0
answers
206
views
Unable to load / route to HTML page using router-outlet
I'm trying to route to a login page in my main page
Main Page is : KMS.html which goes like this (skipping scripts and all )
<html>
<body class="hold-transition skin-blue sidebar-mini">
...
1
vote
1
answer
1k
views
Angular 2 RC1 component routing doesn't load anything
I am using Angular 2.0.0-rc.1. I have tried to setup routing with a single route to start with, but nothing is being displayed. No errors are being thrown.
Main.ts
import { bootstrap } from '@...
0
votes
1
answer
133
views
Child Routes Complaining About Missing Route Config
I'm trying to do a master / detail type view in my Angular2 application. In my main app component, I have the following routes defined:
@Routes([
{ path: '/', component: HomeComponent },
{ ...
0
votes
1
answer
64
views
Angular 2 - routing between two bootstrapped components
I have two components that are bootstrapped separately because they cannot share a parent selector. Is it possible to route between them? I am specifically thinking of pagination.
1
vote
1
answer
3k
views
Angular 2 Component not displaying
I have the following component, which when my router routes to, I get the following screen:
Here is the component:
import { Component } from 'angular2/core';
import { Router } from 'angular2/router';
...
2
votes
1
answer
272
views
Routing not working in Angular2
My Routing isn't working in Angular2, to demonstrate the point, I have put the same component as the destination for both the root of my site and /login. The component works at http://localhost:3000, ...
0
votes
1
answer
192
views
Routing issue root of parent
I have the following setup of my app:
@RouteConfig([
{path: '/', redirectTo: ['Login']},
{path: '/login', name: 'Login', component: LoginComponent},
{path: '/dashboard', name: 'Dashboard',...
11
votes
1
answer
18k
views
Implementing Dynamic Routing in Angular2 (Typescript) [duplicate]
RouteConfig class which can be used to decorate a component (@RouteConfig) with routing capabilities has certain route definitions defined for that component. Now, the catch is to have these route ...
3
votes
3
answers
4k
views
How to keep query string parameters in URL when accessing a route of an Angular 2 app?
I have an Angular 2 test app running the latest alpha (37). There are just three routes, that look like this:
@RouteConfig([
{ path: '/', component: Home, as: 'home' },
{ path: '/errors', ...