33 questions
0
votes
2
answers
52
views
Angular route and child route management
Somebody can tell me if is possible to open a child route in a new view instead of opening right under it?
If so how and how to comeback to the father route previous state of navigation?
0
votes
1
answer
1k
views
Can't separate angular components in angular 1
I'm trying to organize my code a bit differently than the tutorial for component routing. Quite simply I want to my app to have this structure.
app.js
-components/
+-settings/
+-settings.js
+-...
2
votes
1
answer
509
views
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
...
0
votes
0
answers
94
views
Angular new router how to define a default route when no mapped route
I'm using angular new router and configured it as following:
this.$router.config([
{path: '/', component: 'home', as:'home'},
{path: '/home', component: 'home'},
...
0
votes
1
answer
308
views
Angular new router force components folder under root
I'm trying to use angular new router in my Angular 1.5 (+ Typescript) project.
I followed the getting started manual but it forces me to have all my HTML components folder right under my root folder:
...
1
vote
0
answers
120
views
How will component() and the New Angular Router work together in 1.5?
I've read through both proposals individually but am having trouble piecing them together.
So with component() we can set the bindings property to get data from outside of the component.
However, it ...
2
votes
0
answers
611
views
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/...
5
votes
1
answer
1k
views
How to inject component router in Angular 1.5?
I'm working with Angular 1.5 and trying to migrate from using ui-router in 1.4 to the new Component Router in 1.5.
However, when I update to 1.5, I don't see a way to inject '$router' into my ...
0
votes
1
answer
83
views
Setting the script tag to access the new angular router
I am starting to play with the new angular router. I did an npm install as was noted https://www.npmjs.com/package/angular-new-router. However, I am having difficulty setting up the script tag.
I ...
3
votes
1
answer
274
views
Is angular new router part of 1.5 release
Is angular new router part of 1.5 release? I can't find a clear answer but maybe I'm missing something obvious.
1
vote
1
answer
521
views
does angular2-beta.0 really cache the view?
SPEED & PERFORMANCE
Angular 2 is dramatically faster than Angular 1 with support for fast
initial loads through server-side pre-rendering, offline compile for
fast startup, and ultrafast ...
8
votes
2
answers
9k
views
Angular 2 - equivalent to router resolve data for new router
I am playing with Angular 2.0's new router and I try to use something similar to Angular 1.X ui-router / ng-route resolve mechanism.
I was trying to achieve this using RouteData:
import {Component, ...
14
votes
2
answers
18k
views
Angular 1.5 and new Component Router
I'm using angular 1.5 beta 2 and the new router from Angular 2 alpha 45.
I couldn't find examples of usage for the latest router with Angular 1.
I can find examples of the usage of the router for ...
2
votes
1
answer
853
views
How do I use router-link to point to a route that looks like this '/users/:id/messages'?
On all of the examples that I see for the new component router the ID is always at the end of the route like this:
@RouteConfig([
{path: '/email/:id', component: email, as: 'email'},
])
Which you ...
18
votes
1
answer
55k
views
Angular 2's equivalent to window.location.href?
How can one navigate to a different URL within Angular 2? I know that we can use JavaScript's
window.location.href = '...';
But that seems wrong and would cause a page refresh. I am pretty sure that ...