Questions tagged [ngcomponentrouter]
19 questions
7
votes
2 answers
AngularJS 1.5 ngComponentRouter
The ngNewRouter (now named ngComponentRouter) was supposed to be in 1.4, but was delayed and is now supposed to go into 1.5 (as I understand it). However, it's not in the 1.5 beta2 package. I do see angular1_router on github, but I don't see that…

TheDruidsKeeper
- 325
- 3
- 12
6
votes
1 answer
Angular 2 Header component Title change dynamically according to the state
I have a design using angular 2 where header component, navigation bar component and body component where all other components load.
As the picture shows below
Header
Navigation
Where other components load (this section might have…

Saiyaff Farouk
- 5,103
- 4
- 24
- 38
4
votes
1 answer
Are there a progress with backporting Angular 2 Router into Angular 1?
As I understand ngComponentRouter (ngNewRouter) has been deprecated.
And I didn't find any other alternatives but ngRoute & ui-router, which are obviously not designed to work with components.

mrded
- 4,674
- 2
- 34
- 36
2
votes
2 answers
Angular 1.5 Parent-Child Component Issue
I'm using Angular 1.5 Component router and having trouble getting a scope variable in the parent to be accessible in child components. I've created a plunker here that illustrates the problem. I've created a parent component with this view:
…

Andy
- 2,709
- 5
- 37
- 64
2
votes
1 answer
Cant get angular component router to work with lazyloading of components
Hello fellow stackoverflowers,
I've been trying for some time now without success to implement
lazy loading of angular components with the new component router (ngComponentRouter).
This is the code I used for the configuration of the main…

Avriel Moscovitz
- 21
- 1
- 6
2
votes
2 answers
Angular 1.5 $routerOnActivate on Root Router
I want to make sure that the user is logged in properly before proceeding to any of the components he/she's trying to reach, if they're not logged in. Send them to login.
My idea is to do a check in the $routerOnActivate in the root router. Which…

Erik Svedin
- 1,286
- 12
- 26
2
votes
1 answer
How to deal with extra hash in route? (AngularJS 1.5 + new/component router)
We're attempting to build an app using Angular 1.5 with the new component router bits. We've run into a bit of an edge case and we're wondering if there's any way around it.
The Key Players
IdentityServer v2: our client uses this for OAuth…

SeanKilleen
- 8,809
- 17
- 80
- 133
2
votes
0 answers
Angular New Router is now ngComponentRouter. What's the equivilant for $componentLoaderProvider
Does anyone know the new ngComponentRouter equivilant for $componentLoaderProvider to tell the router where to find the views. I have a home component located off the root of the application in
app/components/home/home.html along with the…

DRobertE
- 3,478
- 3
- 26
- 43
1
vote
1 answer
$routerCanActivate not working (Angular 1.5 component router aka ngComponentRouter)
First of all, yes, I know ngComponentRouter module is depracated but my app is already working quite well using it other than this one issue.
The issue is that $routerCanActivate function is not firing (search for "$routerCanActivate" in…

yar1
- 1,331
- 2
- 15
- 26
1
vote
3 answers
Which router for Angular1.5?
This question seems a bit "IdidntwanttosearchonGoogle" but I did. A lot, and anything worked.
I'm trying to build a little web app with angular 1.5. The problem is that I never used route (NEVER !), and Angular 1.5 seems ambiguous about it. I've…

Kalas Yagami
- 183
- 1
- 20
1
vote
1 answer
Which router to use in AngularJS 1.5
I am developing an AngularJS app on its 1.5 version, but i am confused about to use which routing component to use (ngComponentRouter or ui-router).
As, they are saying that ngComponentRouter has been depreated. And, my concern is that i can easily…

shashank
- 439
- 1
- 4
- 17
1
vote
1 answer
Angular 1.5.3 & Typescript & ngComponentRouter : bindings: { $router:'<' } always returns undefined for router property
I'm trying the component router for Angular 1.5.3 with typescript and classes for component controllers, but I fail to inject the current router in any of my components with bindings:{$router:'<'}. When I inspect $ctrl for any component in chrome…

rekna
- 5,313
- 7
- 45
- 54
0
votes
0 answers
Angular routing is not broadcasting the $routeChangeSuccess
I'm working with AngularJS and angular_1_router : https://docs.angularjs.org/api/ngComponentRouter.
I want when navigating between routes to check if the next routing is allowed or not, if it's not allowed the user will be redirected to 403 page.
In…

Renaud is Not Bill Gates
- 1,684
- 34
- 105
- 191
0
votes
1 answer
Angular Module Injection Error (Angular 1.5)
I have defined a sample project structure to try out ngComponentRouter . Here are the following files ,
I may be missing probably basic few things.
Index.html