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
1answer
10 views

Prevent nested ui-sref to be triggered when there is a parent ng-click

Pratically the inverse of Prevent calling parent when nested ui-sref I want to click on a nested element which has a ui-sref, but instead only the parent ng-click should be triggered (conditionally), ...
0
votes
0answers
19 views

Can I create Angular2 web app with out having app.module.ts ?

I have created angular 2 web app given on official web site but with out using any app.module. But I am stuck now while implementing routing modules in my demo app. I don't know how to implement ...
0
votes
2answers
18 views

Clicking a link doesn't redirect? How to debug ui-router?

I scaffolded an ionic V1 site using tab template and created the following link in a page. <a href="#/tab/Test"> Test </a> And an empty control for "Test" page. .controller('TestCtrl',...
0
votes
0answers
11 views

Bootstrap Grid System does not work in injected html to ui-view div

The Bootstrap Grid system does not work in the HTML file that I inject in my ui-view div unless if I copy the bootstrap references to that HTML file.However, it messes up some css configurations in ...
0
votes
0answers
7 views

Parsing Oauth 2.0 return parameters in angular-ui-router

I'm attempting to authenticate a user using Google's Oauth 2.0 API. When my app HREF's to the Google authentication page, it successfully passes information back to my AngularJS app. However, I'm not ...
0
votes
0answers
23 views

How could I code so that angular ui-router's ui-sref to work?

I have written a demo code for ui-router but getting error like: unknown attribute 'ui-sref I go through from the source: (How to get angular ui-router's ui-sref to work, when inside a directive&#...
1
vote
0answers
35 views

Using Resolve In AngularJS Routes to get Json data

I'm trying to get Json data in AngularJS Routes and then inject it to the controller. A resolve contains one or more promises that must resolve successfully before the route will change. This means ...
0
votes
1answer
13 views

Load child states without refreshing parent state in AngularJS

I am using Angular UI Router and when i am click on any option in navbar it loads the corresponding state into a child view. But the problem is whenever i click on any of list items in navbar it loads ...
0
votes
0answers
22 views

ui route - hierarchy prevent innecesary calls to web service

I'm trying to acomplish the following structure in AngularJs ui route: page/operationgroup page/operationgroup/:id page/operationgroup/operation page/operationgroup/operation/:id page/operationgroup/...
0
votes
0answers
16 views

Trying to troubleshoot memory link in angularjs

I have a mobile app that I developed using ionic and angular 1.x. Running the app in a desktop browser is fine, but when I try to move to an edit page on my iphone, the program closes down and the ...
1
vote
1answer
29 views

ui-router w/ specific child state only renders JSON on page refresh , no view

I've used this architecture throughout my app, but it is not working here, and I can't figure out why. I'm loading the whiskey data to my parent state whiskey, which should pass the data to the ...
0
votes
2answers
41 views

ui-router nested state won't load

This is a pretty standard question, however I can't seem to find a solution in anything online. Below is the router/index.html page I'm using. I'm not getting any errors in the console, however when ...
0
votes
1answer
40 views

How i will get to know in routeChangeStart event event triggered by JS or click

Main.js $routeProvider .when('/home', { templateUrl: 'home.html', controller: 'StudentController' }) .when('/viewStudents', { templateUrl: 'viewStudents.html', ...
0
votes
1answer
44 views

How to access a object value of another angular component

Unfortunately I can't pass data between components. I took the bcqr-reader demo at https://embed.plnkr.co/m9dtF9llcAw7eYE94b5k/preview and pass the scanned information to my second component. First ...
0
votes
2answers
49 views

UI Router - how to store data between states without passing them explicitly to $state.go(…)?

I have language code in Gallerycomponent: function Gallery(LanguageService) { var $ctrl = this; $ctrl.$onInit = function () { $ctrl.code = LanguageService.language; _loadGallery($ctrl....
0
votes
1answer
36 views

How to stop angular from creating multiple instances of a controller every time we use $state.go

I am using UI router for angular routing. Everytime $state.go() is called a new instance of the controller is being created. I have $rootScope events here. So everytime I want to print any log (using ...
1
vote
2answers
67 views

How to display navigation and footer in every page in Angularjs?

I'm making a SPA. I want to make a separate component for Navigation, Section, and footer. Navigation and footer must display for every page when I go to Home or About page, only the Section should ...
0
votes
1answer
28 views

AngularJS not displaying array from rest call when loading view

I am new to angularJS and may be missing something small but I have a spring boot backend providing a rest api for angular front end. I am using ngResourse in my factory and this appears to work fine....
1
vote
1answer
25 views

migrating from ngRoute to ui.router

I have a problem with migrating from ngroute to ui.router: using ngroute i have couple angular files: module.js angular.module('betTogether', ['ngRoute']); route.js angular.module('betTogether')....
1
vote
1answer
26 views

cache route pages disable

I have a website using angularjs and bootstrap. The problem is with the cache in the client browser. I post something...the client get old stuff from cache. I am using angular-ui-router-0.3.1 for ...
0
votes
2answers
20 views

ocLazyLoad controller dependency data resolve issue

I have a situation where i am loading a service and controller with ocLazyLoad in angular js, which is working as expected. But, i also want to pass some data to controller by using the service which ...
0
votes
0answers
37 views

AngularJS, UI-Router, Components, TypeScript

i've tried to create a simple angular1 component with the ui-router but it seems I cannot get it to render and I have 0 error in console... Here is the code: Config.ts module app { export class ...
0
votes
0answers
36 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
1answer
23 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
23 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
13 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
29 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
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
11 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
41 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
0answers
15 views

ng-tags not working with predefined values?

tags-input(name='sport_position', ng-model='sport.sport_position',placeholder="Sport Position", display-property="name",autocomplete="on") <link rel="stylesheet" href="https://mbenford.github....
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
32 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
26 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
11 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
24 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
1answer
31 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
38 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
22 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
25 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
43 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
15 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
28 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
36 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: ...