1
vote
2answers
39 views

Make two layouts share the same $scope

I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. Here is the JSBin: <html ng-app="...
1
vote
1answer
25 views

Load a graph from a generated url

I want to build an online html/css/javascript playground. When the code draws a graph, I want to be able to generate a url, with which users could load this graph in a browser. At the moment, in the ...
0
votes
2answers
22 views

AngularJS Factory After First API call, does not ping server and returns stale data, inside child sticky state

I've been banging my head on this one for days and can't seem to figure it out.... my route looks like this: $stateProvider.state({ name: 'core.portfolio', url: '/...
0
votes
1answer
24 views

I have 2 app.run method.how to halt in first method until promise is resolved?

angular.module('app', [ ... ]) .constant('AppConstants', constants) .config(appConfig) .run((UserService, User) => { 'ngInject'; console.log('apprun') UserService.acl() ...
0
votes
1answer
37 views

Switch among different templates/views

I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. My current JSBin cannot accomplish this ...
0
votes
1answer
24 views

Don't update URL

I have a piece of code, which displays a list of file names. Clicking on each file name shows its body on the right hand. And we could add files to the list. After clicking on each file name, the url ...
2
votes
2answers
84 views

Resolve a promise before state changes UI-Router

I am using ui-router and ui-router extras $scope.$on('$transitionStart', function (e, $transition$) { var params = {id:1}; factory.webService(params) .success(function (data) { ...
1
vote
1answer
31 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 ...
1
vote
1answer
58 views

what's the difference between child state and sticky state?

I have a good use of angular 1.5 states (nested states, tab states, modal stats) Ui-router-extras has sticky states, but I dont see the difference with a classic parent/child state architecture ? ...
0
votes
2answers
60 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
125 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
2answers
40 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
0answers
38 views

Configuring Angular UI Router Extras Sticky views within Angular 1.5 Component

I'm trying to implement sticky states on two "panes" within a view. However that view itself is an angular 1.5 component, which is run as a result of a higher level route match. A simplified example ...
2
votes
2answers
76 views

ng-show with $state.includes has blink/flickering - angular; ui-router

As described here How to ng-hide and ng-show views using angular ui router, I have the following markup: <div class='container'> <div ng-show='$state.includes('state1')></div> &...
0
votes
1answer
61 views

Prevent state reloading when changing states ui-router

I understand this has been asked and answered in multiple posts but I have attempted the solutions and still can't quite get there yet. I have a few components that I'm routing between with ui-...
2
votes
1answer
160 views

angularjs cordova base href

trying to set the correct base href value for an angularjs html5 web app to work in cordova initially using $locationProvider.html5Mode(true) with <base href="/">: app works perfectly in a ...
0
votes
0answers
23 views

Keep Sticky State URL when using Parallel States with Modals

I have successfully implemented the modal example for ui.router.extras stickyStates: $stateProvider.state 'modal', state = abstract: true views: 'modal-container': ...
0
votes
1answer
25 views

Angular UI route parameters

I have this pattern in my route.js .state('organizations', { url: '/companies/:options?/:keyvalue', templateUrl: '../app/components/organizations/organization.html', ...
0
votes
0answers
13 views

Need help debugging ui-router: Unexpected end of JSON input

I'm getting an error (see below) when my Angular app initiates in the production environment Problem: This sometimes prevents the initial state from rendering, leaving a blank page. angular.js:...
1
vote
0answers
35 views

Mapping urls to states that dont exist

I am using ui-router-extras extensively but still not sure if I am getting the most out of it . I have used Future States to build the routes in runtime after retrieving from the API . I am trying to ...
0
votes
1answer
58 views

angular ui-router different master page layout for different views

I'm little bit stuck with a ui-router issue, every prompt reply will be greatly appreciated. I've managed to configure the main master page which will be in use throughout the child pages. Child ...
3
votes
1answer
77 views

query parameters not working with ui-router

I need to route to state using complete url with query parameters and perform action in controller according to query parameters. It works fine if I use simple routing url with variables like : "/...
0
votes
1answer
33 views

Query Param value is not updated in angularjs router?

I have defined my state with one constant param(page), one dynamic param(id), one query param(date) like this. $stateProvider.state('test', { url: '/page/:id?date', controller: 'MyCtrl' ...
0
votes
0answers
102 views

AngularJS - Ui-Router-Extras & Sticky States

I'm giving a shot to ui-router-extras, in particular, to Sticky States but I'm having some problems. I would love to have 3 independent ui-view in my index with their different template, controller ...
1
vote
0answers
72 views

ui-router deepstateredirect params

I'm wondering is there any way to specify deepStateRedirect parameter from ajax call ? For example to load from data using resolve and pass parameter to deepStateRedirect in case of user came to this ...
1
vote
2answers
115 views

How to call controller method from the app.js in angular

I want to call the controller method [getFacility()] from the app.js file. but when I used the below code segment I got the error like Error: [$injector:unpr] Unknown provider: here my ...
0
votes
0answers
37 views

Modal dialog using ui-router-extras with a common abstract state?

I need to open a modal that would switch the app into an “inactive state” during the time this modal is open. Then after closure, it would activate the app again. It works fine when the modal and the ...
0
votes
0answers
21 views

Angular : run sub modules as independant app into a parent app

I am trying to run, N time the same Angular module independently into a "parent" Angular App. Using ui-route and ui-route-extra, i can display N time the child app, but they do not run independently :...
1
vote
1answer
244 views

UI Router Resolves - Redirect in child resolve without re-running parent resolves

I have scoured the web for days. I understand that if you redirect ($state.go, etc) in a resolve, the transition is cancelled and all resolves run again. But, what if I just need to prevent going to ...
2
votes
2answers
337 views

UI router same controller for multiple states

In my Angular JS application, I have 2 views - v1 and v2 and 1 controller - appCtrl. I have configured UI router as below .state('profile.v1', { url: '/v1', ...
1
vote
1answer
122 views

Automatic Deep Sub-Route Redirecting in React-Router

I have recently been transitioning a project from AngularJS + UI-Router+ UI-Router-Extras to React + React-Router. One of the better features in UI-Router-Extras that I'd like to bring to React-...
0
votes
0answers
36 views

ui-router-extras FutureState: How to use $stateParams

I have a use case to dynamically (at run time) load a new state tree, triggered by user navigation from either inside (e.g. via ui-sref) or outside (via url) the app. So I think the FutureStates ...
0
votes
0answers
84 views

UI-Router force onExit when transitioning to child state

I have a modalService that is being called onEnter of of a state .state('user.posts.post', { url: '/:postId', //sticky: true, onEnter: ["$state","ModalService","$...
0
votes
1answer
487 views

Load ui-router states dynamically

After a successful login to my app I want to dynamically load all states available to the user from api/js. The dynamically loaded states will always include an abstract state app.module which is the ...
0
votes
0answers
87 views

Angular UI Router sticky dynamic states

I'm trying to use UI router's sticky states for its DOM and scope preservation abilities, but I'm not sure it will be suitable for my needs. Several questions come to mind (please excuse any ...
0
votes
1answer
78 views

Custom Routes in UI Router Angular JS (URL Shortcuts)

I have some states which look like this: .state('patient.patient-login', { abstract: true, template: '<ui-view></ui-view>' }) .state('patient.patient-login.practiceID', { url: "/...
0
votes
0answers
46 views

How to make AngularJS/UI-Router reload to a page not provided in a list of states

I've got a Rails 4.2 app with AngularJS UI-Router enabled. And as such I got a list of states declared in the UI-Router that loads my templates and controllers as I desire. My problem is that I would ...
1
vote
1answer
62 views

ui router dynamic URL issue - url: '/:id/page1' not working

How to create dynamic route when using ui router, if we define: $stateProvider.state('page1', { url: '/page1/:id', views:{} } It works fine, But if we try to add dynamic id first and ...
0
votes
1answer
70 views

Factory Methods Blank When Using In Resolve

I am trying to utilise a factory within my ui-router resolve. I can see my factory name is returned, however the methods do not appeart to be there: router.js define(['module', 'require'], function(...
1
vote
1answer
85 views

Angular modals (ui-router) and general modal architecture concepts

I am working on a fairly complex AngularJS web application and keep failing to implement a working modal / routing mechanism which meet my requirements. Situation My application has (simplified) the ...
1
vote
1answer
44 views

Pass common params to all states UI router

I am a newbie in UI router. I need to pass a global param to all my states. Is there any way as config to have global params in UI Router?
0
votes
0answers
13 views

Global params in UIrouter states

Using UiRouter have four states in my router. Is it possible to Pass a global param to all these states; ex.: state1 url:'/id' and state2 url: '/id1' can either accept or need not accept the '...
8
votes
2answers
221 views

persist sibling ui-views when changing state - ui-router

This question is based on "How can I persist sibling ui-views when changing state" (plunker). I try to keep a view (content) unchanged, when I change the state in the main navigation (mainNav). The ...
0
votes
1answer
36 views

Cant access a view within a state in angular-ui-router

I am trying to link to a substate and can't figure out how to get it to work. Here is the link: <a ui-sref="tab.communityDashboard" class="button button-block button-large"><i class="icon ...
0
votes
0answers
108 views

$state only works in certain parts of angular app

I have gotten $state to work in one part of my application but not the other. It works the first time I call it like this: $state.go('main'); But I call it a little further down like this $state.go('...
0
votes
2answers
209 views

can't get $state to work with angular-ui-router

I am trying to do a simple route redirect using $state. I can't get it to work. Here is my code: angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ng-token-auth']) ....
0
votes
0answers
66 views

angular ui router and sticky states

I am a newbie at angular ui-router, but have been using it for simple layouts up until now. I have this plunker : http://plnkr.co/edit/q71yKZ2m8iZrZo2FwbZd?p=preview What I am trying to do is ...
1
vote
1answer
59 views

Angular + ui-router parallel states architecture

I'm designing a 'custom portal' and i'm stuck on how to design our application in the right way. The portal has a view as on picture below where: Shopping carts dropdown where user can select '...
1
vote
0answers
38 views

Angular UI Router - any way of referencing the same url variable more than once?

I would like to implement finite netsing of ui router states (it is required by the client), the maximum depth of nesting can be a fixed value (for example 10) therefore i would like my states to look ...
0
votes
1answer
59 views

ui-router-extras stateParams empty

can anyone help me on this I have got a question about params: 1) when I go to app.usermanagement.user({id:40}) in router.config in resolve function $stateParams is empty. I guess I missed some ...