UI-Router evolves the concept of an AngularJS Route into a more general concept of a State for managing complex application UI states. Most notably, it allows nested state/view hierarchies and multiple named views.

learn more… | top users | synonyms

3
votes
0answers
257 views

Unit-test of ui-router: after $state.transitionTo() unable to get $state.current to contain current state

I am trying to write unit-test for ui-router's state and can not get it to work so that $state.current would contain a correct state inside the controller after I call $state.transitionTo() inside ...
2
votes
0answers
119 views

(Angular-ui-router) Show loading animation during resolve process

This is a two part question: I am using the resolve property inside $stateProvider.state() to grab certain server data before loading the controller. How would I go about getting a loading animation ...
2
votes
0answers
330 views

How to manage state with the ui-router with multiple modules

I have an app page with 3 columns. The middle column is the main activity and is always displayed. The two side columns are widget lists, that have their own controller and states, and can be either ...
1
vote
0answers
78 views

Debug slow angular-ui-router state change on Mobile Safari

I'm writing an angular app, using angular-ui-router to manage states / routing. On desktop browsers (Chrome / Safari) this is working fine. However, on Mobile Safari on IOS 6 on iPhone 4 (and to a ...
1
vote
0answers
120 views

angular-ui-router dynamic menu: TypeError: Cannot call method 'match' of undefined while rendering menu

i am new to angular and angular-ui-router and trying to create a menu. I tried angular-ui-router and think that it fits for my needs. now i have a problem while creating the menu with the ui-router ...
1
vote
0answers
41 views

Are some kind of rule-based states possible in $stateProvider?

I'm converting an AngularJS application from ng-view to ui-view, and thus from $routeProvider to $stateProvider. My $routeProvider used to have approx. 100 when entries. For around 20 or so domain ...
1
vote
0answers
52 views

browser().navigateTo hangs if $state.transitionTo is called

If I call $state.transitionTo() inside the setup for a controller, e.g. to canonicalize the URL, this causes browser().navigateTo() to hang permanently if the action changes the local state of an URL. ...
1
vote
0answers
361 views

AngularJS ui-router state doesn't refresh on back

I have an app setup with 2 states, A and A.B done this way: $stateProvider.state('A', { url: "/A/{aId}", controller: 'AController', templateUrl: function($stateParams) { ...
1
vote
0answers
69 views

how can I resolve in a base state and get that resolved value when using named views?

TLDR: I can't get the resolve function in the base state to work and get my named views to display the right thing. I've got a set of working routes with named views (docs here) that look like this: ...
1
vote
0answers
162 views

Confused in how to implement tab based app with angular ui-router (like gmail)

I was thinking last night about how to port our crud application to a tab based app, like gmail. First, reading a lot about ui-router, i thought in create a tabService that will create a new tab for ...
1
vote
0answers
239 views

Angularjs ui-router: Rewrite location with default parameter resolved

I have multiple nested states. Let's say: departments: /departments/:idDepartment departments.group: /group/:idGroup departments.group.category: /category/:idCategory Each state has a resolve to ...
0
votes
0answers
16 views

AngularJS 1.2 + ui-router

I am trying to migrate from Angular1.0.6 + ui-router to Angular1.2. But unfortunately my ui-router implementation seems to be not working with angular1.2 To be noted, everything (ui-router) is working ...
0
votes
0answers
6 views

Angular ui-router's ui-sref created dynamically in a directive?

I am working on a line of business application that is using Angular to create a SPA around a Node.js api server. I decided on using ui-router cause of the state-machine and their intuitive way of ...
0
votes
0answers
22 views

Routing to Tab based interface with angular-ui and angular-ui-router

I read a lot of issues on the Github page of ui-router and i decided to get some input (sry for one more tab example) I am creating an interface which is based on tabs (based on angular-ui). I have ...
0
votes
0answers
37 views

How to navigate to a child state using parameters from a factory using Angular.js and ui-router?

I'm trying to get angular ui-router to navigate to a child state using a parameter supplied by a factory which has a default parameter at the start in order to preserve the parameters across the app. ...

15 30 50 per page