Top "Angular-routing" questions

The ngRoute module provides routing and deeplinking services and directives for AngularJS apps.

Angular : Error: Uncaught (in promise) at webpackAsyncContext (eval at ./src/$$_lazy_route_resource

I'm upgrading from Angular 4.0.0 to Angular 5.2.6 i'm facing some problem to get lazy module loading working. with angular 4.0.0 , it works …

javascript angular lazy-loading angular-routing angular-router
How can I conditionally use either [href] or [routerLink] on an anchor?

I need for the same anchor link to be pointed conditionally locally or to external resource. I tried <a […

angular angular-routing
RouterModule.forRoot called twice

I am trying to implement Lazy Loading into my application but seem to be coming across an issue whereby I …

angular angular-routing
Angular ActivatedRoute data returns an empty object

I have a route registered with some data: const routes: Routes = [ {path: 'my-route', data: { title: 'MyTitle' }, component: MyComponent}, ]; and I'm …

angular typescript angular-routing
Angular router: how to replace param?

Let's suppose I've got 3 urls: /:projectId/info, /:projectId/users, /:projectId/users/:userId/profile. All of them have param projectId. UI …

angular angular2-routing angular-routing
Angularjs dependency injection in resolve

I would like to use proper dependency injection in MyCtrl1to inject the fields of the MyCtrl1.resolve object. I've …

angularjs coffeescript angular-routing
How do I check for login or other status before launching a route in Angular with routeProvider?

Let's say I have 4 routes - 2 require the user to be logged in, 2 do not. My app init looks like: $…

angularjs angular-routing
Angular 2 Routing navigate run in new tab(Use Angular Router naviagte )

How to open a new browser Tab , if using router.navigate . this.router.navigate([]).then(result => { window.location.href = …

angular angular-routing angular-router
How to use child routes in Angular 2

Angular 2 version: 2.0.0-alpha.44 I've been trying to do routing in Angular 2. Though i was able to do the normal routing …

angular angular-routing
Circular dependency found: $http <- $templateFactory <- $view <- $state

I have a current 401 check that I'm running with $location which is working fine. However I'd like to swap it …

angularjs angular-ui-router angular-routing