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 (2)

0
votes
0answers
16 views

exception in $StateProvider.$get

I'm creating test application using angular 1.6 and ui-router 0.3.1, the app is working but it throw 3 exceptions: Error: transition superseded at $StateProvider.$get (http://cdn.rawgit.com/...
0
votes
0answers
8 views

Angularjs ui-router with nested views is loading parent controller for grandchildren

I'm using $state.go("titulos", params) to load the titulos page, in which case the parent controller (emissao) is not loaded again. But when I call the grandchildren $state.go("titulos.fluxos", params)...
0
votes
2answers
7 views

ui-view is undefined and my page is blank when i use ui routing

I cannot see my index page till I uncomment my code in controller.What am i doing wrong.here is my sample code.I have tried all possible options, not getting where am i going wrong ` <html lang="...
0
votes
1answer
15 views

Ruby on rails and UI Router not working properly

Alright... So I've installed UI Router and Rails-templates to handle AngujarJs in my project. So far everthing is fine. Except if a type the url manually into chrome's bar (e.g localhost:3000/sign_in) ...
0
votes
0answers
11 views

What is the recommended way to manipulate the URL shown in the address-bar of an Angular application without changing state?

Recently I upgraded the Angular version to v1.6.1 from v1.2.15. The application uses ui-router v0.4.2 There is a requirement in the application that requires the URL to be set to the home page (...
1
vote
0answers
26 views

Change parent state ID and reload child state

Say I have three states: .state('client', { abstract: true, url: '/client/{id}', template: '<ui-view/>' }) .state('form', { parent: 'client', url: '/form', ...
0
votes
0answers
18 views

ui-router ui-view $stateParams not found

I have a main view with all houses displayed and when users click on a house I want to display details page using $stateParams and ui-view, however, when I click on the house the view is not found. ...
0
votes
0answers
7 views

Ionic ion-view wont load when using the ui router

Here is my app.js file. Everything works except for this view. I cant figure out why everything seems fine. Could some direct as to why this is not working. Been pulling my hair out with it for a ...
0
votes
0answers
19 views

Scrolling Ionic 1 child view without scrolling parent view

I'm trying to set up scrolling sub-tabs in a tabbed Ionic 1 app. The idea is to have a header with basic informational stuff and a button-bar to navigate between the various sub-tabs. The content of ...
0
votes
0answers
10 views

Main controller is reloaded when routing to child state with stateParams - UI router

I am using ui-router for my application. I have one main abstract state and two child states. When routing to some of the childs and send params browser is getting reload (parent controller is ...
0
votes
2answers
39 views

Resolve in Angular UI Router

In my angular sample route , I am trying to do : (function(angular){ 'use strict'; angular .module('appRouter',['ui.router']) .controller('routerCtrl',function(myResolveServ,...
0
votes
0answers
13 views

summarize mutliple typings in one file

My problem is, that I've some older Angular 1 projects, where I use Ui-Router in version 0.2.8 and I want to upgrade to the newest RC release which is no longer available with NuGet https://ui-router....
0
votes
2answers
36 views

ui-router ui-view not updating info based on main view

I have a main page displaying a list of houses and when I click on a particular house I want to display the house details. I am trying to achieve this using ui-view however, the house details are not ...
0
votes
2answers
31 views

Ng-view or ui-view not displaying html page

I am relatively new to Angularjs, and am building a website. When I try to inject todo.html into the body tags of index.html nothing happens. I am not getting any errors in the console. I have read ...
0
votes
1answer
20 views

angularjs module not loading for me

I am stuck on trying to get rid of the following error: Error: $injector:modulerr Module Error Failed to instantiate module ptoApp due to: Error: [$injector:unpr] Here is my app.js code: ...
0
votes
2answers
25 views

Recieving a “injector:modulerr” error when trying to inject UI-Router

'use strict'; angular.module('confusionApp', ['ui.router']) .config(function($stateProvider, $urlRouterProvider) { $stateProvider // route for the home page .state('app', { ...
0
votes
1answer
10 views

How to remove parenthesis in URL when using child/ auxiliary routes (named routers) in Angular2?

I am using named routers in my application to implement routing in one of the shared modules. This is what configuration looks like in AppRoutingModule (root): const routes: Routes = [ { ...
2
votes
1answer
20 views

Changing parent controller property from child state in uiRouter

I'm refactoring an Angular 1.5 application and I'm trying to work through a problem without taking apart the entire application. My problem is this; I have a parent state controller with a property. ...
1
vote
0answers
24 views

Angular UI Router - State params reset for parent when sharing controller in child state

I have ONE controller that is used by TWO child states (detail.Controller). The parent states (QUIZ1 & QUIZ3) have different controllers that push different data to the parent scopes (quiz1....
0
votes
1answer
17 views

UI-Router abstract state infinite loop

I am transitioning from ngroute and am trying to add an abstract state to my routes that provides authentication checking. If the user is not authenticated, then redirect them to /login if they are ...
0
votes
1answer
37 views

Angular component does not render template

Based on a tutorial from UI-Router (https://ui-router.github.io/ng1/tutorial/hellogalaxy) I have these states in my Angular app: angular .module('appRoutes', ["ui.router"]) .config(['$...
0
votes
1answer
21 views

Passing stateParams in ui-router

I'm moving to stateless components in my angular 1.x app. I moved out all data loading from the controller code, and I'm using the ui-router's resolve functionality. As I handle every internal state ...
0
votes
0answers
24 views

AngularJS: Load resources from one project into another

I have two Spring Boot projects, Project1 and Project2. I have angular code in both the projects under 'static' folder. I am trying to route to the resources in Project2 from Project1 as below, src/...
0
votes
0answers
40 views

Angular JS UI-Router Reload on Same Page Issue and Open Link in New Tab

I have a Navbar in my Main Page.Whenever I right click on any link (exp:Add Company) and open it in New Tab, it shows the dashboard page in new tab and also when i am on Add Company or Update Company ...
0
votes
1answer
18 views

My state url is matched even if parameter has no value, how do I transition to default state?

This is my UI-Router state: $stateProvider.state("project",{ url:'/project/:projectid/:typeid/:directoryid', templateUrl: '/app/project/view.html', controller: 'projectViewController', ...
-1
votes
1answer
14 views

AngularJS tabs with same controller

There are various versions of this question but I haven't found anything that exactly fits my use case. I have a app used by service agents when dealing with customers. The agents often need to have ...
0
votes
2answers
27 views

How to clear localstorage when moving from angular page to non angular page?

We are working on a JSP/Servlets application , recently we are moving one of module to angular 1.5 with REST api. Now facing challenge when moving from angular state to one of existing JSP page, we ...
0
votes
3answers
33 views

Angular ui routing check condition before loading state

Using angular ui-router I'm trying to make nested routing based on condition.i.e Want to check a condition before loading a state. .state('main.home', { url: "/:cnt", abstract: ...
0
votes
1answer
24 views

How to display sidebar content using angular ui-router?

On home page i have sidebar and Main content , when i click on sidebar items i want to display sidebar content to right side where i have Main content. I want fixed sidebar on all the pages only main ...
1
vote
0answers
22 views

Angular NG6 IE assignment to read only properties is not allowed in strict mode

View IE console Error keep getting this error in IE and Mac safari and iOS devices. in pageheader it only display {{$ctrl.title}} not the value, any idea about this? Games.js import angular from '...
0
votes
1answer
17 views

AngularJS UI-Router “otherwise” state not loading

My index.html page has 3 views: <header ui-view="header"></header> <main ui-view="content"></main> <footer ui-view="footer"></footer> I just changed the site to ...
0
votes
0answers
49 views

Cannot find module at webpackEmptyContext when change route

I have multi angular application. ui-router in angular 1 used required to get html template and controller. Now after bootstrapping with UpgradeModule when i use require or System.import when try to ...
1
vote
1answer
17 views

ng:btstrpd err App Already Bootstrapped with this Element?

It's entirely possible I'm doing something stupid ... Full stack trace of the Error Error: [ng:btstrpd] App Already Bootstrapped with this Element < html class="js flexbox flexboxlegacy canvas ...
0
votes
1answer
40 views

Authentication on route change

I want Angular to check for authentication at every route change. My code looks like this. config.js angular.module('message').run(['$rootScope', '$location', 'Auth', function ($rootScope, $location,...
0
votes
1answer
24 views

Nested Angular ui routers throw exception

I've got this error when clicking on ui-sref="favorite-list": Could not resolve 'favorite-list' from state 'studies' I have code like this: $stateProvider .state('study', { ...
0
votes
1answer
12 views

Ionic UI Router not working for child view

I'm trying to create a very simple lookbook application. Yet I can't seem to get the routes to work. I tried the answer to this question to debug the routes. Nothing appeared in the console. I'm ...
0
votes
0answers
33 views

Angular-ui-router version 1.x - problems implementing - need syntax for require command

I have been trying to upgrade to latest version 1.x of angular-ui-router. I need this version as it provides better support for components and a path to an Angular 2 upgrade. Multiple attempts to ...
0
votes
0answers
13 views

UI-router: Scroll to top page on statechange in Internet explorer scrolls to top before next view loads

In our angular application we want to scroll to the top of the page when a user navigates between pages. Unfortunately, not much was happening when we added the autoscroll attribute to our ui-view ...
0
votes
1answer
46 views

How to prevent state change in AngularJS 1.6 with ui-router 1.0?

How can we use $transitions to cancel a state change to prompt the user for saving? Previous ui-router versions used to have an event in the callback, and could be stopped with event.preventDefault(), ...
6
votes
0answers
57 views

How do I configure Java EE running on GAE to work with Angular UI Router in html5Mode?

I am attempting to set the UI Router location provider html5Mode to true for my Angular application: locationProvider.html5Mode(true). While this works client side (appropriately redirects) I am ...
0
votes
0answers
23 views

Best process to make a state of ui-router from a page

I have created a working web page page.html, which loads page.css and page.js in the header: <script src="page.js"></script> <link href="page.css" rel="stylesheet" type="text/css" />...
1
vote
1answer
18 views

Angular ui.router, any result and any error

I have a little problem with my views in angular. I try to use ui.router to config my routes but it doesn't work. I try to use the console but it's clear. I don't know what i can do fix this problem. ...
0
votes
1answer
9 views

Child states not rendering with parent state in Ionic V-1

enter image description hereI'm new to Ionic v-1. I tried implementing navigation using parent-child relationship. The parent state is "tab" while the active child state is "home". When I load the app,...
0
votes
1answer
38 views

Ui-router not generating templates having checked all options

I'm trying to use a ui-router in Angular to generate a single page with multiple templates in <ui-view></ui-view> but it is unable to load a single template. It just gives a blank page ...
0
votes
1answer
31 views

Angular $rootScope.on('$stateChangeStart') is not working

I use this to create my website and when i created a run method with $rootScope.on('$stateChangeStart') in it and isn't working.Here is the code: .run('Url',function($rootScope, $state, $location){ ...
0
votes
0answers
16 views

EJS,express, ui-router and angularjs how do they work together?

If i have an angularjs project in project1 then a public folder with index.ejs as the main html how would i set it up in the server.js outside the public folder? how do I make public/index.ejs as a ...
0
votes
1answer
25 views

My declared state is not being picked up?

I have this code and every time I typed "localhost:3000/page1" nothing happens i get cannot get /page1, this is the code.. var module = angular.module('ngFirstApp',['ui.router']); module.config(...
0
votes
1answer
28 views

Ui router not working?

My simple router doesnt seem to work, here is my app.js var module = angular.module('ngFirstApp',['ui.router']); module.config(function($stateProvider, $urlRouterProvider) { $stateProvider....
0
votes
0answers
30 views

AngularJS ui-router inserts route in every page

I have two pages http://localhost/page1 which contains ng-app="appOne" in header and ng-app="appTwo" in the body. appTwo uses ui-router to pull forms to enable a multi-step form and displays the ...
1
vote
1answer
39 views

Redirecting state: null is not an object (evaluating 'name')

When a user enters the state cloud, it checks if a current variable is found, and if it isn't, it redirects them to a different state. But for some reason, I get the following error on the redirect. ...