Questions tagged [angular-component-router]
85 questions
2
votes
3 answers
How to determine when AngularJS has finished rendering all of the components & directives
Is there any way to run scripts when AngularJS has finished rendering all the routes, components & directives?
For example when all components and directives with a templateURL have finished rendering.

Mark Yuan
- 850
- 1
- 8
- 17
2
votes
0 answers
How to use ocLazyLoad in Angular 1.5.7 with ui.router?
I am developing one SPA using Angular 1.5.7 . In that application routing is done with "ui.router". i have a separate folders for each component like Dashboard,Users,Reports and each folder contains its own component and directive, view and service…

Sathya V
- 589
- 3
- 7
- 15
2
votes
1 answer
AngularJS: Browse page content not being displayed in Homepage
I'm a newbie to Angular and working on a project but I'm having an issue with displaying info in two different pages.
I have a "browse" page that displays profiles.
I also have a homepage where I want to display the contents of the browse page plus…

MalcolmInTheCenter
- 1,376
- 6
- 27
- 47
2
votes
2 answers
Angular 1.5/2.0 Components, recommended to prefix?
When created the new Angular 1.5 or 2.0 components, should I still be prefixing the name of the component using 3 letters for example
abc-my-component
abc being a name to avoid duplication with other components?
I was unsure if this is still…

Martin
- 23,844
- 55
- 201
- 327
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
Components navigate route
How to naviage to another component from current component? I have tried like this:
account component:
vm.$onInit = function () {
var jwt = accountService.getJWT();
if (!jwt || jwtHelper.isTokenExpired(jwt)) {
…

Mikhail Makarov
- 25
- 2
- 5
2
votes
1 answer
Angular 1 component router query params
I'm using angular 1 with new component router.
I have $routeConfig like this:
{ path: '/list', name: 'ListCmp', component: 'listCmp', useAsDefault: true }
I want to navigate to this component with custom query params.
$router.navigate(['ListCmp',…

Andzej Maciusovic
- 4,306
- 1
- 29
- 40
2
votes
1 answer
Angular 1.5 component router sibling components
Is there a way with the new component router for Angular 1.5 to keep the sibling component rendered in the ng-outlet directive?
I want to show the Detail View in parallel with the sibling List View.
As far as I understand the official Docs…

Pascal Mueller
- 31
- 7
2
votes
0 answers
Angular 2 rc 1 Component router not loading second component
I have setup my routing like that. When user browse to http://localhost:3000, if tries to load Home component. But if user hasn't logged, it redirect user to login component.
@Component({
moduleId: module.id,
selector: 'app',
…

microchip78
- 2,040
- 2
- 28
- 39
2
votes
1 answer
Ng-outlet cannot access parent $scope
Using Angular's standard route I was able to have child controllers access the parent $scope:
Any Child controllers within ng-view would be able to access the ParentCtrl Data, but with…

HireLee
- 561
- 1
- 9
- 25
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
0 answers
AngularJS different child components vs child routes
Newbie using AngularJS 1.5 with ES6, a component-based design and the new Component Router.
Let's consider a simple Survey application. Any given Survey has an instructions page and a list of Questions.
When the end user accesses a given Survey, he…

Spiff
- 2,266
- 23
- 36
2
votes
2 answers
New Angular 1 Component Router - Highlighting the link associated with the active route
I have a navbar with two links:
I would like to highlight the link associated with the active route. Essentially, I would like to add a class called…

Naresh
- 23,937
- 33
- 132
- 204
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
1
vote
0 answers
Check which component is displayed depending on the router-outlet
I have the following app.component.html structure:
I'm trying to change the appearance of the website depending on the component that is displayed.
For instance,…
user16241255