0
votes
1answer
15 views

Using controllerProvider on abstract states

Take this example state definition: .state('parent', { abstract:true, url:'/parent', controller:'Child1Controller' templateUrl:'parent.html' }) .state('customers.child1', { ...
0
votes
0answers
23 views

UI Router not working with Angular not matter what

(angularJS 1.2.5 & ui-router 0.2.7) Please help its 4 in the morning and its been 2-3hrs since i'm stuck with this, flipped the code multiple times but cudn't make it run. In my index.html, I have ...
1
vote
1answer
16 views

Is there a way to simplify $urlRouterProvider.when?

$urlRouterProvider .when('/EcoCOOL', '/ecocool') .when('/ECOCOOL', '/ecocool') .when('/EcoCool', '/ecocool') .when('/EcoCOOL/USA', '/ecocool/USA') .when('/ECOCOOL/USA', '/ecocool/USA') ...
0
votes
1answer
30 views

In AngularUI Router, do unresolved promise leak?

I am using angular UI router and I was wondering if anyone knew whether or not unresolved promises when using resolve would leak. Our use case is that in certain states, we needed to do some checks ...
0
votes
1answer
26 views

Getting A Route Parameter for Resolve

I'm getting killed by my inability to grok Angular-UI UI-Router. I have a state defined as follows: $stateProvider .state('member', { url: '/member/:membersId', templateUrl: ...
0
votes
1answer
36 views

How to know next state in ui-router

I'm showing and hiding a modal when the user go to a specific state (/login), but I would keep the modal in background if the users goes to /register from /login. If the user is in /login and then ...
1
vote
2answers
35 views

ng-controller and ui-view doesn't work on the same element

I am using AngularJS and ui-router. My code has ng-controller and ui-view on the same element and the controller doesn't get triggered http://plnkr.co/edit/UphvqV01R7m0WwlY67YA?p=preview HTML: ...
0
votes
5answers
63 views

Angularjs - Why I can update an object but not the list (ng-repeat) from a different view?

By the console the customers object seems updated, but the list(ng-repeat) not, what can i do. If I implement this funciont and view2.htm's html inside page.htm it works. HTML "page.htm" ...
0
votes
1answer
36 views

Call another directive from the directive with the same attributes and content

I want to override behaviour of one library directive, called "ui-sref". Lets see example: <a ui-sref="edit" class="btn btn-small"> <i class="icon-pencil"></i> Edit </a> ...
-1
votes
2answers
24 views

AngularJS - How configure $routeProvider after library update to 1.2?

With the 1.0.4 version my code works, but with the 1.2.x not anymore. my javascript demoApp.config(function($routeProvider){ $routeProvider. when("/",{ contrller: simpleController, ...
3
votes
3answers
99 views

Difference between angular-route and angular-ui-router

I am new in angular. I find angular quite interesting and planing to use angular in my big apps. So I am in the process to find out right module. What is the difference between ngRoute ...
7
votes
1answer
61 views

AngularJS, animations with ui router which versions work?

There have been some incompatibilities with ngAnimate and ui.router since the release of Angular 1.2. Which versions of Angular, Angular Animate and Angular UI Router work together?
2
votes
1answer
56 views

Getting started with Nested View

I am at a total loss with what's wrong with how I've setup my nested views. What am I doing wrong??? app.config(function ($stateProvider, $urlRouterProvider, $locationProvider) { ...
2
votes
1answer
33 views

angular Ui-router link out of app but in the same domain

I'm trying to use ui-router in my angular app. My base url is "/segments" and I use base tag to define it. <base href="/segments" /> Here is my routing config: var base = "/segments" ...
0
votes
1answer
35 views

angularjs ui-router come back to the current state

I am using angular ui-router in my application. I have a 2 states, create-app and list-apps. When i create an app i transition to the state create-app with param id equal to null. The problem is that ...
1
vote
1answer
32 views

AngularUI Router: nested state not launching controller

New to Angular and ui-router.. I can't seem to get a nested controller to launch.. If the state is not nested, the controller launches.. The url is generated from the DnaNodeListCtrl template. The ...
1
vote
0answers
47 views

ui-router causing “full page reload” in controller test?

I'm trying to write some angular controller tests but ran into: Some of your tests did a full page reload! karma/jasmine error as soon as my test ran httpMock.flush() After troubleshooting by ...
0
votes
0answers
23 views

Prevent blinking screen when using interceptor in angularjs

I use interceptor in order to catch 401 responses from server. When I got 401 response I broadcast a message: $rootScope.$broadcast('auth:loginRequired'); In the .run() method of my module I listen ...
0
votes
1answer
65 views

AngularJS ui-router not working

I'm new to AngularJS and ui-router as well. I try to build an app following a pattern I have seen in a tutorial, but it doesn't seem to work. I inserted two alert statements but they don't run. ...
0
votes
1answer
16 views

Match url.html and url.html/ in Angularjs ui-router

What is a nice way to match url for both /url.html and /url.html/ in Angular.js ui-router? For now, they are separate like this in my code: $stateProvider .state("myUrl1", { url: "/", ...
0
votes
1answer
78 views

how do I access the angular-ui/ui-router $state object from a global function?

I'm handling a click by navigating to the appropriate state with the $state.go function, but since it's a global function, I don't know how to access that functionality, since $state isn't global. ...
1
vote
1answer
64 views

AngularJS: Can't get access value of isolate scope property in directive

Problem: In a directive nested within 3 ui-views, I can't access the values of my isolate scope. scope.values returns {} but when I console.log scope I can see all the values on the values property. ...
0
votes
1answer
71 views

Set URL query parameters without state change using Angular ui-router

How should I update the address bar URL with a changing query parameter using AngularJS' ui-router to maintain state when refreshing the page? Currently, I am using $state.transitionTo('search', {q: ...
1
vote
1answer
34 views

Angular ui-router state name binding

Is there a way to bind a function to specific state name instead of the state change event? For example, this is what I do now: $scope.$on('$stateChangeSuccess', function(evt, toState, toParams, ...
0
votes
1answer
21 views

ui-router nested route controller isn't being called

I am trying to call a controller which should be linked with home.category route but it isn't being called.. don't know what's wrong in it..? $stateProvider ...
0
votes
1answer
29 views

angular having multiple navbars

I am new to angular and now playing around with ui-router. I have setup //app.js var app = angular.module('app', [ 'ui.router', 'appControllers' ]) app.config(function($stateProvider){ ...
0
votes
1answer
14 views

in .state onExit call functions from several controllers in the view being exited

it would be handy to call save functions for several controllers in the view being exited. anyone have an example of how to call these? I've tried nested controllers with the top level defined in the ...
1
vote
0answers
48 views

Wierd behaviour in testing angular-ui-router $urlRouterProvider

I am trying to test the default redirect for my angularjs application based on angular ui router, No matter what I did, the otherwise config was ignored, I tried to forcefully call the update method ...
1
vote
0answers
29 views

UI-Router Let URL Pass when not defined in a state

I would like to use Angular UI-Router however I would need it to let any url pass through the browser (and make the browser navigate the page) which isn't defined (the url) in the $stateProvider or ...
0
votes
0answers
38 views

Ui-Router and purposeful transition to the same state

I was wondering about going to the same state in ui-router and the best way to approach this. In my state transition I have it set up like this: .state('newstep',{ url:'/step/:stepnumber', views: { ...
2
votes
1answer
78 views

What is the Angular ui-router lifecycle? (for debugging silent errors)

The best I've found is http://www.ng-newsletter.com/posts/angular-ui-router.html. It doesn't go as deep as, for example, the order in which $stateChangeStart, exampleState.onEnter, ...
1
vote
2answers
54 views

Injecting resolve into resolve

I was wondering, if i can inject a resolve parameter into another resolve parameter. Code would tell you more: .state('videos.videosLection', { url : '/:lection', templateUrl : ...
0
votes
0answers
85 views

Angular UI select2 - shows [object Object] on tab switch

select2 with Angular seems to be working - however I'm using ui-router and I have different tabs. One of my select2 inputs is used in two tabs and the ng-model is the same. While everything works, ...
0
votes
0answers
36 views

Angular-UI-Router - change 3rd level nested view without knowing about 2nd level nested view

I have few "parent modules", lets say user community I also have "embedable modules", lets say photos videos wiki My embedable modules can be embed to the parent modules. All modules do not ...
0
votes
2answers
53 views

How can I get the full url of the current ui-router state?

I'm using ui-router for AngularJS; I'm handling the '$stateChangeSuccess' event, and trying to get the full path (after '#') for the current state. $location.hash() returns an empty string and ...
0
votes
1answer
75 views

How to redirect to state if specific stateParam is empty

I'm not sure if the way I am doing it is correct, any advice would be appreciated. I have a Restaurant Selector, which the user can select a restaurant from. Then all other child states load up ...
0
votes
2answers
108 views

AngularJS / ui-router: $state.go does not work inside ng-click

I have a view where I have the following code: <input type="button" value="New Post" ng-click="$state.go('blog.new-post')"> The goal is to transition to a new state without having to use ...
1
vote
1answer
125 views

angular-ui-router 0.2.7 nothing showing on page

I need help. I build web app with angularjs 1.2.5 and angular-ui-router. When I use angular-ui-router v0.2.0 all works fine. But when I have upgraded angular-ui-router to v0.2.5 or v0.2.7 I see empty ...
2
votes
1answer
61 views

AngularJS: Pass an object into a state using ui-router

I'd like to be able to transition to a state and a pass an arbitrary object using ui-router. I'm aware that usually $stateParams is used, but I believe this value is inserted into the URL, and I ...
1
vote
1answer
75 views

Angular ui router : calling method on controller from onEnter

My ui router config is like this: $stateProvider .state("list",{url:"/list",templateUrl:"list.html",controller:"ctrl as vm"}) .state("list.select", url:'/select', ...
2
votes
2answers
57 views

Have parent state default to child state using ui-router

I have this state structure: .state('places', { url:'/places', controller:'PlacesController', templateUrl:'views/places.html' }) .state('places.city', { url:'/:city', ...
0
votes
1answer
78 views

Keep AngularJS responsive while resolving controller dependencies

AngularJS stops processing UI events while it waits for any promised controller dependencies to resolve. If any of these dependencies rely on an API call that hangs, the application becomes ...
1
vote
1answer
46 views

Closing a modal automatically on navigation (when clicking an anchor)

I'm using angular-ui modal in my webapp. one of models display many links (anchor elements) that navigate to various parts of the app. the modal can be closed as usual with modal.dismiss() or ...
2
votes
1answer
101 views

Angular/UI-Router - How Can I Update The URL Without Refreshing Everything?

I'm new to both Angular and the ui-router. When someone selects a model and my controller performs a standard SHOW method, I simply want to update the URL to include the model's ID without refreshing ...
3
votes
2answers
228 views

Angular UI Router Nested State resolve in child states

In an angular app I'm working on, I'd like there to be an abstract parent state which must resolve certain dependencies for all of its children's states. Specifically, I'd like all states requiring an ...
0
votes
0answers
88 views

Stop angular ui-router from reloading state's template and controller, if only params change?

I have state defined like: .state("root.home.foo", { url: "/foo/:id", templateUrl: "/static/partials/home.foo.html", controller: 'FooCtrl' }) When in that state, I respond to a mouse ...
1
vote
1answer
89 views

Angular-UI-Router modal like pinterest

I'm making an app with a gallery that looks a lot like http://pinterest.com. In Pinterest, when you click a pin, it shows the pin page over the top of the gallery you were viewing. The URL changes to ...
0
votes
1answer
40 views

how to use $state.go with a sub state?

I'm trying to switch states into a substate from its parent page. Here is my setup: I've a form (url: /session) that has ng-click attached the ng-click runs a $resource POST, and calls $state.go on ...
1
vote
2answers
114 views

ngAnimate with ui-view

I am having major problems with getting ngAnimate to work with ui-view. The classes never get applied. Please help: bower.json "angular": "1.2.0-rc.2", "angular-resource": "1.2.0-rc.2", ...
1
vote
1answer
35 views

How to set nested state with default fallback state in AngularJS

Is there a way in the AngularJs to define the fallback per nested root state? i have the following to redirect the user to the homepage when unmatched url is found ...

15 30 50 per page