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

Angular App: Using two domains to point into same app's different states to use as home page

I am planning to build a web application in AngularJS using Node JS and MonogoDB. Here I am confused a little bit, the basic functionality of the app will be: 1. sell used cars by owners on my portal ...
0
votes
0answers
9 views

$transition$ not working when injected in a controller / ui-router 1.0.0-beta.3

in the official doc : https://ui-router.github.io/docs/latest/modules/ng1.html , in the example : MyController.$inject = ['$transition$']; function MyController($transition$) { var username = $...
0
votes
1answer
15 views

How to share resolve between two views (ui-router)

So, I know I can probably create a service, but this would be a lot cleaner and I feel like it should work. I'm trying to inject the resolve from the abstract view, into each controller but I'm ...
0
votes
0answers
17 views

Not able to access url in salesforce

I have changed the UI in salesforce using angular js and angular material,the url works fine and the routing happens fine when I have logged in with my credentials but the same url when accessed with ...
0
votes
4answers
45 views

AngularJS: How to remove #!/ from URL?

I already have done $locationProvider.html5Mode(true); but it is not working. Whenever I access http://example.com it goes to http://example.com/#!/. Code is given here: var myApp = angular.module('...
0
votes
0answers
23 views

How to handle Multiple modal controllers in AngularJS

I have a page that has multiple modals in it. these modals has different functionalities. I want to know how to declare each modals' controllers. should i include them all in the main view? is that a ...
1
vote
1answer
12 views

Why content gets populated as a sibling of router outlet in angular2

In ngRoute/ui.router, content gets loaded inside ng-view/ui-view, but in angular 2 it gets loaded as a sibling of router outlet. Why?
0
votes
0answers
11 views

Redirection issue with URL parameter with ADAL.js and UI-Router

I configured the state which contains url with url parameters like this: url:route/:id1/:id2:id3 with ADAL js. When I hit url with route/1/2/3, after login, I am redirected to route/:id1/:id2/:id3?id1=...
1
vote
1answer
17 views

Multiple Named Views in UI Router

I'm asking this to make sure I understand the concept. In UI Router, they recommend you use nested states as much as possible. However, it seems when you do that, you can only have 1 controller per ...
0
votes
0answers
18 views

Modularize AngularJS App Using UI-Router

I'm trying to modularize a large AngularJS app (1.4.8) that is using UI-Router. The current structure is like this: transactionApp.config(['$stateProvider', '$urlRouterProvider', '$...
0
votes
1answer
15 views

ngUpgrade - routing from ng2 to ng1 - how?

I am using ngUpgrade and I dont know how to handle the routing between ng2 and ng1. If I am in ng2 component, how do I route to ng1 controller? and viceversa. I am using ui-router for the ng1. For ...
0
votes
1answer
101 views

AngularJS and UI-Router: 'Error: transition superseded' during angularjs unit tests

I'm attempting to create an authorization package for a project of mine. I'm getting the error 'transition superseded' during my unit tests, and I can't find out where that would actually be. Unit ...
0
votes
1answer
17 views

ui-sref doesn't generate a href, despite of router conf and state in a $scope variable

I am having some problems in understanding where to find my mistake. I have a state stored in a $scope variable. Inspecting the page, I see that the right state is stored in the ui-sref property in ...
0
votes
1answer
21 views

On bootstrap modal refresh keep my JSON data in current modal view

In my Angular app my Bootstrap modal opens up with a custom url, set using ui-router. The problem I have is on page refresh my JSON data gets cleared from my modal and it displays empty. Any help on ...
0
votes
1answer
13 views

Angular ui-router state is saving URL, even after using location to false as option

I want to keep the state NOT bound with URL. Thus, didn't assign URL while configuring state. But I need to change the URL via separate work flow using: $location.path("/blah"); If we call $state.go(...
1
vote
0answers
22 views

ui-view inside the ui-view

I am creating single page application, when i load the page my index.html will start with login page, in index.html i am using ui-view, login page is load inside the ui-view, and when i logged in home ...
1
vote
1answer
29 views

Show/hide state from sidebar

So I have this states : function routeConfig($stateProvider, $urlRouterProvider) { $stateProvider .state('users', { url: '/users', template : '<ui-view ...
2
votes
1answer
45 views

'ui-sref' of Angular UI-Router not working as expected

If I am working with href, UI Router works as expected. But, if I am using ui-sref, it is not working as expected. I have two issue with the following example: the anchors 'link-series-2-no-param' ...
0
votes
2answers
15 views

Is it posibble to use ui-sref-active without having a ui-sref?

I have this template <div class="row"> <div> <div > <a ui-sref-active="active" ui-sref="main.step1"> <span>1</span> ...
0
votes
0answers
27 views

controller is not called as expected in $stateprovider

I have used $stateProvider in my angular application for routing. Prob I'm facing here is, on logout I could navigate to login page,but the login controller is not getting reloaded as expected. Please ...
0
votes
1answer
28 views

Adding resolve to Angular ui-router nested views?

I am trying to create a version on my Angular 1.4.12 app with nested views. The reason is that some sections of my app have a header/content/footer setup and some do not. My index page has a single ...
0
votes
0answers
49 views

Why won't my AngularJS Controller take control on state change

I'm in the very beginning stages of learning AngularJS. I have a couple of years of Webdev experience (JS, HTML, etc.) so JS is not new to me. I'm going through the tutorial at https://thinkster.io/...
0
votes
2answers
36 views

UI Router template is not injected but state changes Changes

I am trying to make a nested views, here is the plunker https://embed.plnkr.co/oRMnMW4QoWwhSkm9maHf/. The state changes but the template not changes. Can anyone correct me what have I done wrong ...
0
votes
0answers
40 views

Angular UI Router transition error

"angular 1.6.1", "angular-ui-router 0.3.1", All ui views changed/worked correctly but i'm getting the following error in my console window, i don't know why. My HTML code is <!DOCTYPE html> &...
0
votes
1answer
34 views

Angular-Ui-Router state changes but template URL doesn't load for nested states

I am working on an a requirejs + angularjs project with ui-router . I tried to implement nested views but only the state changes but the template URL doesn't load. My route-config.js .state(ROUTE....
0
votes
1answer
14 views

Angular-ui-router: Making asynchronous call across state transition

I'm trying to make an asynchronous API call triggered by the onEnter to a new .state onEnter: function(StatFactory){ StatFactory.getStats(function(res){ console....
0
votes
0answers
10 views

Multiple themes (view + controller) for a single angular UIRouter route

I have 2 different "versions" of the same screen. Each has its own view and controller right now and both run properly (separately) when set using the UI-Router config file. There is a setting being ...
2
votes
1answer
37 views

Why does /#!/ appear on address bar?

Hi I've been studying angular 1.5 and using this course https://thinkster.io/angularjs-es6-tutorial I've cloned the repo to help me get started and while following the video tutorial, I noticed that ...
0
votes
1answer
25 views

AngularJS ui-router state not detected after server side redirect

When there is a serverside redirect (301 permanent) ui-router does not detect the initial state. Html5mode is enabled. ASP.NET MVC 5 is used for the backend and the first page load is serverside ...
0
votes
0answers
26 views

Accessing ui-router resolve objects in controller

I have a function returning some data from an API inside ui-router resolve, and would like to access that object in my controller. UI-Router: .state('base.home', { url:'/', templateUrl: '...
1
vote
2answers
39 views

Angular ui-router resolve - using $state.go

Im just learning ui-router resolve and would like to simply redirect my state if the user is not logged-in. It seems I cannot simply use $state.go inside the callback function. Here is my code: ....
0
votes
1answer
18 views

ui-router / ui-sref, inherited parameters?

I have a couple of parameters that are fundamental and often present in my application. Simplified exemple of url in the router definition: url:'/settings/:id' url:'/profile/:id' url:'/account/:id' ...
1
vote
1answer
27 views

Getting routing to work with hashes in AngularJS

There is a partially working example of my issue at http://nwlink.com/~geoffrey/routing/default.html var routingInterface = angular.module("routingInterface", ['ui.router']) .config(function($...
0
votes
2answers
32 views

UI router empty parameters in URL

I am converting my application from using simple Angular router service to UI-Router. I have a route which has some parameters coming from search field. In the router service provided with Angular, if ...
0
votes
2answers
25 views

Preserving $rootScope while browsing between states

I developed a single page application with index.html file and 2 views view1.html and view2.html and configured 2 states for the above views but when I'm browsing between the states I'm losing the ...
0
votes
2answers
24 views

How to have states for hierarchial data using ui-router in angular js?

I need to have a url structure in place for hierarchical categories using angularjs ui-router. Example; Category tree is like below: Root -Application 1 --Category level 1 ---Category level 2 ----...
0
votes
1answer
45 views

How to read $stateParms value in Angular2?

Using Ui-Router In Angular1 The stateparam value is coming using $state.params How to do the same thing in ANgular2 I tried like this this._uiRouter.globals.params.id it's working, But its not a ...
0
votes
1answer
23 views

Pass resolve parameter to angular1 component in UI Router

I am trying to pass my resolve parameters to angular one component using ui router. My UIRouter configuration is as below :- .state(memberConstants.memberMVLicense, { url: "/mvlicense", ...
0
votes
2answers
20 views

how to pass parameters from one state to other using angular2 ui router form ts code?

I am new to Angular2 . I tried quickstart application.same application now I want to do with angular2 ui router,I am struckking here I have some list Items. When I click one Item it shows details of ...
0
votes
0answers
24 views

Angularjs routing with Spring MVC

var app = angular.module("BlankApp", ['ngMaterial','ngRoute']); app.config(function($routeProvider) { $routeProvider .when("/", { templateUrl : "views/home1.jsp", }) ....
0
votes
1answer
44 views

AngularJS ui-router application has /#!/ in the URL

I have an application with ui.router working normally, but another application the url has an "!" after "#" Ex: http://localhost:8090/dev/#!/home Why it happens? The normal should be: http://...
0
votes
2answers
25 views

How to activate default state in ui-router?

I'm using ui-router 0.2.18 Main referral admin URL for my website looks like this http://example.com/partners/dashboard I want it to be changed to http://example.com/partners/dashboard#referral-link (...
0
votes
1answer
40 views

reload the angularjs after update , date not updated

i am working in angularjs 1.i am trying to make CRUD in angularjs and laravel.i have successfully make the CRUD and CRUD is working fine , in my application their is child and parent routing present ...
0
votes
1answer
40 views

Duplicates in a repeater are not allowed?Use 'track by' expression to specify unique keys.?

I have created notification service globally for the application, while sending the db call, capturing the error code in interceptors and show alert. how to avoid the duplicated Error mesage in ...
0
votes
1answer
15 views

AngularJS. Templates are not included in ui-views, when transitioning between child states of different abstract parents

Templates are not included in ui-views, when transitioning between child states of different abstract parents. Here is the plunker and link to the editor. Navigate form login (auth.login) state to ...
1
vote
4answers
31 views

why the factory is not able to access inside the controller

I have created notification factory and pass inside controller,Inside controller when assign the factory to the scope getting error. alertsManager MyApp.factory('alertsManager', function() { ...
0
votes
0answers
10 views

Notification alert service not working in controller getting typeError: Cannot read property 'alerts' of undefined

I have capturing the application response error ,while capturing the error, i am getting the error. In Interceptor ,according to the response code , have assign the rootscope broadcast and show the ...
0
votes
0answers
41 views

“/” issue in angular route

I use ionic framework. I have an url address like below: <a ng-repeat="item in list" href="#/detail/{{item.Subject}}/{{item.Id}}" class="item item-avatar"> xxxx </a> Above code, item....
0
votes
1answer
19 views

Angular ui-router resolve is calling function that returns object properly, but still ends up getting undefined. Why?

I have a custom function that properly returns a cache object of user details. Additionally, the function checks to see if the cache is empty beforehand and makes an API call to retrieve the ...
1
vote
1answer
25 views

Access a child state from a child state

I want to access a child state from a child state but I get : angular.js:14195 Error: Could not resolve '#/projects/detailProject' from state 'projects.list these are the states : function ...