0
votes
1answer
33 views

Filter data using query string parameters

I have 2 files: module.js with the following code: angular.module('App.fragments.Jobs', []). config(['$stateProvider', function($stateProvider) { $stateProvider .state('jobs', { ...
0
votes
1answer
27 views

Angular JS event for page rendered using ui.router

Background Scenario: I have an ng-repeat that populates my view, dynamically enlarging the <div> container. I need to adjust the height of my <div> when the rendering is complete, ...
0
votes
1answer
73 views

Angular JS promises, JSON data and funny timings

I'm really struggling with the promises here. It's more than a day now, and I still can't figure it out. I'm new to Angular and, more in general, to the promises "concept", so I'm sure there is ...
1
vote
3answers
70 views

Is there a way to pass variables to a controller from ui.router?

I have a page structured with some nested views, using ui.router and I would like to pass some data from the parent controller to the child controller, without injecting useless services into the ...
0
votes
1answer
35 views

angularFireAuth with ui-route

I'm trying to use angularFireAuth (from AngularFire - Firebase) with ui-route. The problem is that the angularFireAuth needs ng-route as a dependency, so I will have to include it in my module. The ...
0
votes
0answers
47 views

Resolve $http request before running app and switching to a route or state

I have written an app where I need to retrieve the currently logged in user's info when the application runs, before routing is handled. I use ui-router to support multiple/nested views and provide ...
0
votes
1answer
45 views

Using ui-router with ngTouch

I'm making an Angular.js site using UI-Router. However I also need ngTouch to eliminate the 300ms touch delay on devices.. Ui-router recommends you use the ui-sref directive to navigate. ngTouch ...
0
votes
1answer
202 views

Angular-app, authentication and order of resolvers in (ui-)router

This questions refers to the angular-app project and the way it authenticates users. The original implementation guards access to some urls by using resolve clause on the router. This looks like: ...
1
vote
1answer
153 views

Having troubles with nested states in AngularJS and ui-router

Have some troubles with nested states... I have an application which has a few pages (represented as page templates). So, I really need to use nested states. Reading documentation and examples was ...
0
votes
1answer
207 views

AngularJS - Dynamic routing with UI-Router

So I have my fully functional static router within my awesome angularjs-powered single page application and now I get the task to make certain routes dynamic. Say until now I had the following ...
0
votes
1answer
176 views

Having trouble with AngularJS routeparams (stateparams)

i am having trouble with the following route for the albums. below is my controller and the routes file, i am using the angular ui module. i am trying to load the photos on the album on the ...
1
vote
1answer
261 views

Angular UI Router - nested routes, not work templates in nested state

Here is my code: .state('profile',{ url : '/profile', templateUrl: 'views/user.html', controller: 'UserCtrl' }) .state('profile.forgot',{ url : ...
0
votes
2answers
424 views

How to extract query parameters with ui-router for AngularJS?

How do I extract query parameters using ui-router for AngularJS? In AngularJS' own $location service I did ($location.search()).uid to extract the parameter uid from a URL. What is the ...
1
vote
0answers
43 views

Are some kind of rule-based states possible in $stateProvider?

I'm converting an AngularJS application from ng-view to ui-view, and thus from $routeProvider to $stateProvider. My $routeProvider used to have approx. 100 when entries. For around 20 or so domain ...
0
votes
1answer
185 views

Sending events between ui-router states

I have an AngularJS application where views will $broadcast a "context changed" event to tell its children (ng-includes with controllers and directives, all with their child scopes) about what's going ...
0
votes
1answer
76 views

Using UI-Router to make views change separately

It's possible to set the ui-router to change one view without changing any other? For example: when navigating on the app, some actions are pointed to one view: the view A. However, the user can ...
2
votes
1answer
159 views

(Angular-ui-router) Show loading animation during resolve process

This is a two part question: I am using the resolve property inside $stateProvider.state() to grab certain server data before loading the controller. How would I go about getting a loading animation ...
0
votes
1answer
59 views

Child state controller is never executed

I was trying to wrap my head around ui-router and I've tried to implement the following logic: if there is no state, go to state /items when processing /items, retrieve a list of "items" from the ...
1
vote
1answer
211 views

angular ui.router tilt transition between two states

I'm trying to wrap my head around the how I would go to implement a tilt transition between the two views below. Currently it just replaces the ui-view in the root, and the map is not longer there. ...
0
votes
1answer
54 views

How to inject an html tag from database into my directive's template, in effect dynamically defining the root element/tag of the template?

I want to dynamically build a template with data from database (Firebase/angularFire in my case). The way the template will be built depends on the tag property within each object retrieved with ...
1
vote
1answer
51 views

How to set up a child or grandchild state as the default index state with ui-router?

I'm using angular with ui-router. What I'd like to do is when a user browse to links such as: / /contacts /contacts/:id they all default display the same content as the link /contacts/:id with a ...
0
votes
0answers
114 views

Angular.js UI-Router Children Scope

I am using the ui-router library (https://github.com/angular-ui/ui-router) and I'm having a bit of confusion around nested views/routes. Here is how I've configured the routes: $stateProvider.state( ...
0
votes
0answers
53 views

How to pass resolved dependencies in state manager view controllers?

I am trying to access the response from dependencies in the controller. [ui-router] $stateProvider.state('project', { url: '/:projectId/:forkId', resolve: { foo: function() { return { bar: ...
1
vote
1answer
973 views

How to get angular ui-router's ui-sref to work, when inside a directive's template?

Basically, I am trying to change/customize the behaviour of the ui.bootstrap.accordion. All is working, except for integration with ui-router. Here's the way I want to use the accordion: ...
3
votes
1answer
1k views

Angularjs routing choppy when using authentication

I am looking for a better way to do the transitions between route states in angularjs. Currently I have been following a couple different tutorials to configure angular with a backend api server ...
0
votes
1answer
328 views

AngularJS UI-Router multiple states with same URL

I have a multipage form made using AngularJS and the AngularUI router ui-router. Each step has it's own URL (/step1 -> /step2 -> /step3). At step 2 the form offers the user a choice between 2 options. ...
2
votes
2answers
428 views

Access $stateParams of new state in service called from resolve function with UI Router

Is there a way to access $stateParams for the state you're transitioning to from a service called in a resolve function? With ngRoute you'd use $route.current.params. As this minimal plunk shows, the ...
1
vote
2answers
268 views

Inheritance and nested views in AngularJS

I'm trying to set up some nested views in angularjs. I've been using the ui-router library to do this which works great for the most part. The problem is that there is a separate controller for each ...
1
vote
4answers
1k views

Angular UI Router - Views in an Inherited State

edit: Based on the answer by @actor2019 I want to update my question to better explain the problem: Using Angular UI-Router(v0.0.2), I've setup the app to properly navigate between main ...
0
votes
1answer
223 views

Changing URL on AngularJS without transitioning state for a particular link, but keeping the URL in the link

I have a link which has two actions. When I click on it, it opens a modal box via "ng-click", but it also transitions state via its "ng-href". The modal box opening is intended. The state transition ...
1
vote
1answer
69 views

Taking care of the complete URL for the router

I'm experimenting angularjs on my own website. My problem is that I want the same content on the URL http://website.com/foo/bar with and without JS. When I come on "/" and JS, I can move to ...