The angular-ui-router-extras tag has no usage guidance.
0
votes
2answers
39 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
55 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
26 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
17 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
45 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
26 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
0answers
69 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
16 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
24 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
10 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
21 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
41 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
47 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
32 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
78 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
61 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
66 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
34 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
168 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 ...
1
vote
2answers
178 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
89 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
33 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
71 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
409 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
82 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
52 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
44 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
60 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
55 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
75 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
39 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
12 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
194 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
32 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
100 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
175 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
44 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
52 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
0answers
71 views
Default inactive sticky state with ui-router-extras
I am using sticky states from ui-router-extras and I have two independent ui-views.
Here is my config:
$stateProvider
.state('home', {
url: '/',
sticky: true,
views: {
...
0
votes
1answer
50 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 ...
0
votes
0answers
14 views
how to get handle event onRouteUpdate in ui-router, and how to get queryParams from the url
Is there any event which can handle any change in the route, e.g. if I add queryParam, and it should get triggered. One more thing, how to get that queryParam from the URL.
I know how to handle all ...
0
votes
1answer
30 views
Change $scope.data in ui router
How do you show different data (single views, not nested) in the same template in the same state using ui-router. Can you use resolve?
0
votes
1answer
95 views
Not getting previous state data in Angular js when user clicks on browser back button
I am working on an AngularJs application. My Problem is as Follows
I have a filtered data using certain parameters using checkboxes and radio buttons. After Filtering of the Data, I have moved to ...
3
votes
0answers
78 views
AngularJS Ui-router - Keep sub ui-view changes between tabs (sticky states)
I am struggling trying to make two tabs to keep an independent behavior using UI-ROUTER.
Here is the scenario:
Person details editor with tabs:
Tab 1: Basic Person Info @ ui-view="basic"
Tab 2: ...
1
vote
1answer
181 views
AngularJS state loading
I'm trying to load states dynamically from a JSON file using ui-router-extras. The JSON file looks like the following:
[
{
"name": "app",
"url": "/app",
"abstract": "true",
...
0
votes
0answers
58 views
Avoid state transition occuring twice in $state.go or uisref
Using UIRouter, trying to navigate from a child state [A.childa with url "localhost:90/A/childa/212"]to a different state [B], but the transition is occuring twice [like on click of a button the url ...
0
votes
0answers
32 views
Angularjs programatically add ui-view to a template
Is there a way to programatically add ui-view to a template ?
Im trying to implement sticky view(parallel view).
My state routing is dynamic,so config is working fine.
eg:-
<div ng-repeat="vw in ...
0
votes
0answers
96 views
Angular carousel library slick.js
I've been working on the slick library (https://github.com/kenwheeler/slick/ ...ver1.5.7....precisely) since a while now. I am adding a slick slide using slickAdd method.
This is how i am doing it on ...