0
votes
1answer
14 views

$state.go redirects to old URL not changing the state

I'm facing this issue with state.go not working as expected Below is how various states are defined (function (app) { 'use strict'; app.ng.requires.push('ui.bootstrap'); ...
1
vote
1answer
18 views

Nested views vs. nested states

I read the ui-router docs but I didn't understand what is the different between nested views and nested states and how its related to scope inheritance. Thank!
0
votes
1answer
32 views

Multiple params using ui-router

I am having some weird problem passing multiple parameters using ui-router My ui-sref looks like this: ...
0
votes
1answer
17 views

ui-sref and variable state parameter names

I want to render a link such as: <a ui-sref="myState({myKey: 'my variable type value'})"> where state name myState and key myKey are variables. Is there a way to accomplish this?
0
votes
0answers
19 views

how to send and access data using angular ui- router state config file

I'm planning to send data throught state configuration rationale: There are some states required full screen mode and I can not place the logic in controller as this will apply to all other section ...
1
vote
1answer
23 views

AngularJs ui-router $location or $state?

How can I transform this: $location.path('/app/home/' + id).search({x:y}); to this: $state.go('/app/home/' + id).search({x:y}); I tried, but I actually can't get enough information how to ...
0
votes
1answer
16 views

Angularjs UI-Router state params not working

I have a simple setup in my config() $stateProvider .state('app', { 'url': '/app', 'abstract': true, 'templateUrl': 'views/layout/index.html', ...
0
votes
2answers
30 views

UI router Unknown provider for injecting service into child state resolve

Got Unknown provider when injecting service into the child state resolve function. But if defined a resolve in the parent state, it just works. Below there are some sample codes: I defined a service ...
1
vote
1answer
24 views

Angular ui router - Redirection doesn't work at all

I'm using ui.router for routing in my Angular app. There is a typical login scenario, where I'm redirecting a user to the login url if he's not logged in. Without the ui.router library, this worked ...
0
votes
1answer
30 views

angular ui-router states with multiple views & controller instantiation

Ok, I have a reasonable amount of experience with angular and ui-router, but I'm running into an issue when it comes to the architecture of my app. I have some states like: main.module.js ...
0
votes
1answer
20 views

generator-angular and ui-router

I'm using generator-angular with Yeoman and I'm using yo angular:route XYZ to create new view/controller/route/and test spec. I know have to use ui-router to implement a multi-step form, based on ...
0
votes
1answer
14 views

Clicking on content tab routing to different page with AngularJS

I have the following state using angular-ui-router module and I am currently at the url http://localhost:3000/#/bar/87023/ where 87023 is the value of a. .state('foo', { url: '/bar/:a/:b', ...
0
votes
1answer
23 views

Angularjs page reloading help inside controller

i am trying to implement the login system in angularjs and php. $scope.signForm = function() { $scope.loading = true; $scope.remember=true; $http.post('user/action/signin.php', ...
1
vote
1answer
46 views

UI Router: Multiple Independent Views

I feel like this is a straight forward use case for the ui-router but maybe I'm missing something... I want to have two separate views next to each other controlled by their own menus. When I click ...
1
vote
0answers
37 views

404 page for UI-Router Extras and future states when a state is not found

I'm new to Angular and as I'm usually building quite big applications I started creating a lazy loaded navigation. Things work pretty well, I'm able to lazy load modules and states using AngularUI ...
0
votes
1answer
44 views

“ng-repeat” inside a “ui-view” causes a “TypeError: Cannot read property 'insertBefore' of null” exception [AngularJS]

I am trying to have a part of a parent's view change as the user descends into one of the parent's sub-states. The following is a short code snippet to demonstrate my intention and the resulting ...
0
votes
2answers
30 views

AngularJS: Relative link paths are broken when html5mode(true) is on

I've been searching and I've found "solutions" to this problem, yet I still can't get this to work right. The Scenario: I'm building and Angular (version 1.2) website with the UI Router and running ...
2
votes
1answer
26 views

IE10 not rendering HTML on one view in specific?

Check out 204.187.13.94/#/programs on IE10. Here's a screeny for those who can't see: http://puu.sh/bOPRp/978ec90be5.png For some reason, it renders the view as plain HTML. Only for this view, and ...
0
votes
2answers
34 views

Independent routing for multiple regions in an AngularJS single page application

I have a single-page AngularJS application with four regions, each with its own content: I need each region to communicate via services, but otherwise they need to have their own independent ...
0
votes
0answers
19 views

Angular UI Router - how to handle invalid controller from controllerProvider

I use Angular UI router and have defined the following state: $stateProvider.state('objectDetails', { url: '/object/:type/:id', templateUrl: 'url/to/my/template.html', controllerProvider: ...
0
votes
1answer
32 views

ui-route update url without param

i'm trying to update url without params is it possible ? on my app i created state .state('webPrint', { url: 'https://waybackassets.bk21.net/print/:lead', templateUrl: '/application/views/web-print.html' }) and when ...
0
votes
1answer
29 views

Multistep form using angular ui router

I went through this article http://scotch.io/tutorials/javascript/angularjs-multi-step-form-using-ui-router#building-our-angular-app-app.js and the plunkr link is ...
2
votes
1answer
22 views

Why doesn't ng-view render my templates?

I stuck with the integration of the ui-router into my angular app. To keep it simple, it works, only the template does not get rendered. I also don't get any errors. html layout file ...
0
votes
1answer
26 views

Can UI-Router ignore the initial state?

Is it possible to have UI-Router ignore the page state on initial page load and only kick in on subsequent state changes? Basically, when a user navigates to http://example.com/foo for the first ...
0
votes
0answers
14 views

callback when ui-view animation is done

I'm using angular in an app together with ui-router. I wish to be able to execute some code, when the animation of the ui-view is complete. I've read that $stateChangeSuccess should be able to achieve ...
0
votes
1answer
32 views

Angular + ui-router implementing tabs

For the past 9 hours I have been trying to implement a page with tabs using Angular and ui-router. I have the following: .state('someAbstractParentRoot', { 'abstract': true, ...
0
votes
1answer
14 views

ui-router: open modal on $stateChangeEvent

Some states in my app require further authentication. Eg a Edit state should prompt the user to enter a one time password. I would be nice to solve this horizontally: attach metadata to the states ...
0
votes
1answer
13 views

How can you dynamically create a ui-sref argument?

My page contains a "next" link which may point to a page or may point to an article: <a ui-sref="page({slug: nextPage.slug}">Next</a> or <a ui-sref="article({slug: ...
1
vote
1answer
34 views

Attach data dynamically to state.go function and retrieve in resolve property

I have a parent state: .state('schoolyears', { url: '/schoolyears', views: { 'menu@': { template: '<h1>Start your ...
1
vote
1answer
33 views

Angular UI Router - How to use $uiViewScroll in code

I am new to AngularJS and Angular UI Router. I am wanting to decorate and call angular ui router's $uiViewScroll from javascript code but cannot figure out how to do so. Can someone please help me ...
0
votes
1answer
28 views

Access to all states of angular-ui-router programmatically

I have a $stateProvider configured like this: angular.module('example', ['ui.router']) .config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/steps"); ...
0
votes
0answers
12 views

Angular UI Router - Reload reverts a transitioned state back to the parent state

I have an application which is role based, so I am using parent states to create layouts which are used across different roles, and then I have child states which add specific templates for the role ...
0
votes
2answers
44 views

ui-router change state via a URL address?

I'm having trouble transitioning to another view state when I only have the full URL path. The ui-router says to use $state.transitionTo or $state.go but those require the state name. I tried to ...
0
votes
1answer
15 views

$broadcast and $on listener not working after state change with different paramters

I have a ui-router state with params: .config(function config( $stateProvider ) { $stateProvider.state( 'editor', { url: '/{userName}/{presentationTitle}/editor', views: { "main": { ...
0
votes
1answer
19 views

Keep URL params ui-router

I have a web app with an entrance point in a different app. So by the time user gets to my app they have some parameters in the url like so: http://myapp.com/#/new?param1=value&param2=value2 In ...
0
votes
0answers
30 views

unable to open a modal with angular and ui.routes

I am trying to follow this example to show a bootstrap modal on a certain state. It works fine without a modal (so the state config should be ok). All needed dependencies (ie angular bootstrap) should ...
1
vote
1answer
30 views

Controller from Parent Layout is not access by child views

I have a layout set up for one of my pages that is then seeded with a ton of little views that I use to populate with date. My states currently looks like so: .state('eventLayout', { ...
0
votes
0answers
23 views

Tabbed UI with AngularJS

The problem: I'm currently trying to come up with a solution of porting a desktop-based software to the web and I want to build it as a SPA with AngularJS backed by RESTful webservices. The desktop ...
0
votes
2answers
60 views

UI-router dynamic state access level

I have a state setup like this. This serves dynamic pages from the database based on the :pageSlug via pageObj in the resolve. I am wondering if its possible to make data.access on the state itself a ...
0
votes
1answer
21 views

Angular UI Router - Named Nested Views Not Working

I have the following: Routes function Config($stateProvider, $urlRouterProvider, USER_ROLES) { $stateProvider .state('dashboard', { url: '/dashboard', views: { ...
1
vote
0answers
31 views

How to config Angular ui-router to not use strict URL matching mode

ui-router's version 0.2.11 introduced option to turn off strict URL matching, but I can't figure out how to actually use it. I've tried standard config as they use in tests: app.config(function ...
0
votes
0answers
19 views

Error when testing UI-Router $state.go() with $rootScope.$apply()

I have this bit of code in my AppController that changes a scope variable when the state changes: $scope.$on('$stateChangeSuccess', function success(event, toState) { $scope.pageTitle = "My App | ...
0
votes
1answer
38 views

Angular: ui-router how to pass data object or some parameter to other controller through state

I'm already read about resolve, data for ui-router but still can not get how I can solve my problem? View 1 HTML: <a ...
0
votes
2answers
26 views

Using $stateParams in a “root” or global controller

I am creating an AngularJS application that is a web planner that consists of 6 steps. Each step has its own view and its own controller. There is some data that should be accessible from all states ...
0
votes
1answer
21 views

make ui-router nested views load progressively

I have a dashboard-like page the loads Apple, Pear and Orange data on 3 different ui-views, registered as named views. The overall view resolve is responsible for getting Apple, Pear and Orange data ...
1
vote
1answer
53 views

How to handle error in angular-ui-router's resolve

I am using angular-ui-router's resolve to get data from server before moving to a state. Sometimes the request to the server fails and I need to inform the user about the failure. If I call the server ...
0
votes
1answer
19 views

ui-router url params with a hierarchy

how is it possible to set up url routes in the $stateProvider of the ui-router module with url params in a hierarchy like this /home /:username /:title/editor I only get it to work if there is ...
0
votes
1answer
28 views

$state is not recognized inside the callback of $stateChangeStart

I am having a problem that $state is not recognized inside my "on" event function. This is my code: .run(['$rootScope', '$state', function ($rootScope, $state) { ...
1
vote
1answer
35 views

Angular ui-router ui-sref-opts to update address bar

I have path params of the form: /mask/:username and I have ui-sref and ui-sref-opts for the form: <a ui-sref="mask" ui-sref-opts="{username: '@myusername'}">Mask</a> But when this ...
0
votes
0answers
31 views

controller not loading on $statechange

Im currently working on a voting app where users have to vote for the best item in 10 categories. This has to be presented as an accordion, meaning that each vote section must have its own ...