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

ui-router root call not possible?

I've applied ui-router routing and it works just fine. However when I publish the website to azure I'm getting this on the root page Navigating to the /home url works fine and also all the other ...
-1
votes
0answers
15 views

$routeConfig or $stateprovider

I'm using an angularjs app 1.5 and there is many way to configure the routing so please what is the latest version of routing of angularjs 1.5 ?? and what is the recommanded way to configure the ...
2
votes
2answers
20 views

ui-router of angularjs optional parameter

.state('signup', { url:'/app/signup/:ref', templateUrl: 'partials/signup.html', }) Above is my route config using ui-route. It works when I visit localhost:80/signup/something ...
0
votes
1answer
12 views

back button isn't doing anything using angularjs

This is how I specify my route. .state('app.partners', { url:'/partners', templateUrl: 'partials/dashboard/partners.html' }) .state('app.partners.id', { url:'/:id',...
0
votes
2answers
16 views

Implement angular ui-router instead of ng-router

What am I doing wrong? I cannot make it work. The link of login and signin don't react as they are not links. I see the url of the login when I do the mouseover upon the link the following address ...
0
votes
0answers
6 views

Using stateHelper with ui-router Can't resolve 'app.user.home' from state '' where user is a child abstract state of abstract state app

After trying to use the stateHelper to reorganize my app's menu layout I'm getting an error; Error: Could not resolve 'app.user.home' from state '' at Object.transitionTo (ionic.bundle.js:49177) ...
1
vote
0answers
8 views

Toggle ui-view template according current state

I trying to use one ui-view directive for two differentes states with two differents templates. I have 3 levels of states : Profile (http://example.com/profil) Inbox (http://example.com/profil/...
10
votes
1answer
2k views

Replace ui-view with the loaded content

I have multiple views like here : http://www.funnyant.com/angularjs-ui-router/ And I load them in my page like this <div data-ui-view="content"></div> --- 75% width <div data-ui-...
0
votes
0answers
8 views

Need to break out of iframe and change top state

After making a payment within an iFrame, After the payment I need to break out the iFrame and change state of the top page which is a SPA. I am able to break out using the following javascript snippet ...
1
vote
0answers
10 views

Angular 2 animations (using a different animation library e.g GreenSock Application Platform)

Im just curious since I have been playing around with Angular 2 and it uses it its own api to do animations, is now possible to use a library like GSAP to construct the animations but let the api ...
0
votes
1answer
10 views

AngularJS UI-Router reloadOnSearch not working as expected

I have a view where it is possible to have different objects loaded based on an ID. It is a get request and the controller or state should not entirely reload. I am using ui-router and I've come ...
10
votes
2answers
5k views

angular ui-router and accessing child state params from parent

Edited with more details Newbie question here, I am sure. I am trying to do something that I thought would be straightforward, but I am not getting anywhere. Basically, I have a parent state with ...
0
votes
1answer
22 views

Passing data from one view to another using UI-Router [duplicate]

I am trying to figure out the best way to pass data from one controller to another using UI Router. I have two views populated with data from two different APIs. View 1 contains a ng-repeater with a ...
0
votes
0answers
12 views

Angular UI Router 1.0 - Transition Hooks mess up location history

This is what I have: $transitions.onBefore({}, function() { if($window.confirm('Are you sure to leave?')) return true; else ...
0
votes
1answer
2k views

AngularJS - Dynamic $StateProvider With UI-Router Views and $ocLazyLoad Resolves Syntax

I currently have a good working static version of my question being asked. The issue is that I can't seem to format the JSON properly when trying to use $StateProvider in a loop. I'm not sure exactly ...
4
votes
4answers
10k views

Fade animation between state transitions in ui-router

I am using ui-router in my web application. Root div code is: <div ui-view="content" class="fade-in-up"></div> When I go from one state to another (/orders to /feedbacks in the ...
0
votes
1answer
17 views

Sending partials from keystone.js for use with ui.view

Been trying to get my head around this, but can't for the life of me figure out what I'm missing. So I want to set up keystone, but want to use angular on the front end, and I want to avoid reloading ...
23
votes
4answers
7k views

Case insensitivity with angularjs ui-router

I'm building a new angularJS app, based from the AngularJS SPA Visual studio template (http://visualstudiogallery.msdn.microsoft.com/5af151b2-9ed2-4809-bfe8-27566bfe7d83) this uses ui-router (https://...
2
votes
2answers
30 views

Pass parameters into ui-view

I'm trying to pass parameters into nested ui-view: <ui-view user="user"></ui-view> And now let me explain why do I need this. That is how my ui looks like: It's user card Angular ...
0
votes
1answer
13 views

Typescript+Angular1.5+Angular UI router - Promise not found

I have a problem bootstraping with this set of tools. I get following error: ERROR in C:\home\projects\angular-typescript-webpack\node_modules\angular-ui-router\commonjs\ng1\directives\...
0
votes
1answer
23 views

AngularJS ui-router tutorial undefined binding es2015

I'm trying to build an es2015, offline, bundled (using webpack) version of the ui-router angular1 tutorial, but I'm getting caught up in trying to resolve some data passed to a component. Although the ...
3
votes
3answers
3k views

Angular-ui router loading jade template

I'm trying to combine Express with Angular and notably Angular-UI Router and use Jade: My index.jade looks like this: doctype html html(lang="en") head meta(charset='UTF-8') meta(...
0
votes
2answers
24 views

Passing parameters data to controller with Angular ui router state

I was using $httpBackend and the way I followed code examples I ended up feeling very trapped and cornered ... I had no idea how to make additional ajax calls from my controller as it httpBackend shut ...
0
votes
0answers
10 views

Is it possible to have a state param that looks like a path with angular-ui-router?

Here's an example with these two routes: .state("test", { url: "/test/{path}", template: "<div ui-view></div>" }) .state("test.child", { url: "/child", template: "<p>child&...
0
votes
0answers
18 views

$urlRouterProvider when() match any slug in URL?

I’m attempting to go to a specific state using the $urlRouterProvider’s when function. The pattern I wish to match is a slug of any name directly after the base url. Like so: http://baseurl.com/any-...
6
votes
2answers
11k 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
2answers
378 views

Angularjs - Argument 'homeController' is not a function, got undefined

I have an ionic application that gives me below mentioned error when navigating `homeController's scope. Here's my app.js file: var app = angular.module('app', [ //external modules 'ionic', //...
0
votes
0answers
11 views

ui-bootstrap pagination and ui-router query string parameters how to watch and manage

I want to use ui-bootstrap pagination with ui-router <ul uib-pagination total-items="totalItems" ng-model="currentPage" ></ul> and I want to have this url /user-list in this case I ...
0
votes
1answer
25 views

Use route component property for ngIf

I am trying to use a property off the router to trigger an ngIf but am not sure of the correct syntax in the html. Angular2 RC6 { path: 'detail/:id', component: HeroDetailComponent }, <div *...
0
votes
0answers
16 views

How to handle stateChangeStart event at controller level in angularjs?

I am trying to redirect to home page when specific views are refreshed in browser. If I handle stateChangeStart event on rootScope level, it all works fine and navigates to home page. var payApp =...
1
vote
1answer
1k views

How to ng-hide login button after successful login Ionic?

I have started sideMenu app in ionic and tried some implementation. Initially, ionicModal is used to show login so i change it with ion-list item like; <ion-side-menu side="left" > <ion-...
0
votes
0answers
15 views

angular ui router : can i set url params with $http in resolve?

I have some pages have url like /status/service/:serviceId/dashboard /status/service/:serviceId/component etc.. /status/service/:serviceId is abstract state, user should directly jump to dashboard ...
15
votes
4answers
314 views

Is it possible to pass param from state to state with angularJs?

I wish to pass a param from one store-state to the display product info in products-state: My app - storeApp .config(['$stateProvider', function($stateProvider) { $stateProvider .state('store', {...
0
votes
0answers
7 views

how to use location proprety in options of $state.go(to [, toParams] [, options])

Searched stack overflow and google a lot,read how to use options but unable to find an example on how to use location property in options of $state.go(to [, toParams] [, options]). Can anyone please ...
0
votes
2answers
85 views

Possible to hide some parameters in URL with Angular UI Router?

I want to pass two values to new ui-view via params: item id list of objects However, I'd like the new view to show only the id in the browser URL and not the stringified array of objects: http://...
0
votes
0answers
11 views

what is the best way to configure the routing angularjs / ui-router

by default Im using all my configuration routing in the app.js its working but its not a good practice like this : import AppComponent from './app.component'; import LoginComponent from './login/...
0
votes
1answer
27 views

ui-router use “Resolve” in state custom property

I'm making a breadcrumb component based on ui-router states. So this is what I achieve. $stateProvider.state('home', { // custom property breadcrumb: 'Home', // other properties // ... })...
0
votes
1answer
29 views

$http TypeError: Cannot read property 'get' of undefined - in a factory

Not sure why this is a problem I have get error on $http Index.html // References to files <script src="common/services/common.services.js"></script> <script src="common/services/...
0
votes
1answer
17 views

ui-router : Transition template never shown up

I have tried to implement SPA using ui-router. I implemented ng-click handler function which calls $state.transitionTo function in ExpertController. I expected the template which url is /expert/{...
0
votes
2answers
41 views

How to call the external controller from angular scope

I am creating a project using angularJS. Here I have many controllers in different HTML files script section. In my home page file, I have to call these controllers and scope values without referring ...
0
votes
0answers
18 views

Disable URL change with UI-Router in Angular?

Is it possible to configure ui-router in an Angular 1.5 application to completely ignore the address bar? Desired behaviour is something like this: Navigating between states via UI does not change ...
9
votes
3answers
8k views

Angular ui-router to accomplish a conditional view

I am asking a similar question to this question: UI Router conditional ui views?, but my situation is a little more complex and I cannot seem to get the provided answer to work. Basically, I have a ...
0
votes
0answers
12 views

ui-router change views element has 0 height

I am using a ui-router and have two views that are components (aka their templates for those states are <one></one> and <two></two> ), call them one and two. In ...
8
votes
3answers
15k views

Angular UI Router state.go parameters not available in stateChangeStart

I'm using Angular UI Router and I need to send a parameter with the state.go method. Like this: $state.go('myState', { redirect : true }); I also need to check that parameter in the event ...
3
votes
3answers
4k views

Error: $injector:modulerr Module Error with ui-router

i cant figure out what is the problem div#wrapper(ng-app="adminApp") .... js/ var adminApp = angular.module('adminApp', ['ui-router']); if i use var adminApp = angular.module('adminApp', []); ...
2
votes
1answer
34 views

Angular UI Router - How to make a parameter required

$stateProvider.state('state1', { url:'/state1/:param1/and/{param2:.+}', templateUrl: 'state1.html', controller: 'State1Controller', }); I'm trying to make param2 required by using regex ...
1
vote
2answers
209 views

Angular JS controller called twice (ng-controller)

I'm developping an ionic application and when using angular for login my controller is called twice, I've looked through all the others similar questions but didn't find a solution . The problem is ...
0
votes
1answer
24 views

UI-Router and Query Parameters in a Redirect

Using angular's ui-router, is there a way to write redirects, such that query parameters will be populated for the target state. For example, here's my state: .state('me.profile', { url: '/profile?...
-1
votes
0answers
15 views

How to load tab contents from ui-router?

I want to load tab contents from router templates , currently tabs are there but its not loading contents from router templates , when i click on tabs i Only see text app.dit,app.st etc , Any idea ...
1
vote
2answers
31 views

$state.go and $state.otherwise malfunction

I'm trying to go to a page(template) using $state.go. Controller .controller('NavCtrl', function($scope, $location, $state) { $scope.openDaily = function() { $state.go('daily'); }; })...