0
votes
1answer
32 views

Open Modal and change URL without change the view in AngularJS

I'm trying to open a modal with angularjs. My route to task list is: /client/:id/task/list Its working fine. Now, i'm trying to show the task info in a modal, above the list. My route for this ...
0
votes
1answer
28 views

Angular ui-router nested views separated templates and controllers

I have following files: index.html car.html truck.html mainCtrl.js carCtrl.js truckCtrl.js and want to make such routes: #/search (template: index.html, controller: mainCtrl.js) #/search/car ...
1
vote
1answer
33 views

How to get Angularjs UI Router list of states?

Is there any way to get the list of states configured for the application through Angularjs UI Router? i.e After configuring all the states (aka routes in angular), how to get the array of these ...
0
votes
0answers
13 views

Angular UI-router history tracking in Ionic

I have a custom History Service that I am using to track history through my app, but I am having a problem with tabs. When going back in history, and the history is the 2nd tab, a second state change ...
1
vote
1answer
43 views

Autoscroll to TOP with ui-router and Angularjs

I've read so many different problems with this and none of the solution given seem to fit my use case. I started by simply putting target="_top" on all my links, but that actually forces my app to ...
0
votes
1answer
23 views

Remove page from history, so “back” will work properly

I have my app that you need to login to get in to the other pages. so the first page is "login" and it checks if you are already logged, if so you will be redirected to the main page app, if not it ...
0
votes
1answer
20 views

angular-ui-router: Creating extendable, non-url-altering layout states?

What I'm trying to do There are two 'styles' or 'classes' of display "Normal": [ Header | Body | Footer ] - I use this for most states "Discreet": [ Body ] only, centre of screen - I use this for ...
0
votes
1answer
22 views

ui-router dots in name not working

The UI-Router docs shows that you can use dots in route name: <!-- partials/state1.html --> <h1>State 1</h1> <hr/> <a ui-sref="state1.list">Show List</a> <div ...
0
votes
0answers
22 views

How to manage efficiently a dynamic persistant navigation bar in angular

I am making a mobile app using cordova. This is basically how it looks like: I'd like to make the blue bar Persistent. That means the when the view (or state since it ui-router) changes, it is ...
0
votes
1answer
21 views

ui-router states that have different views

I have several pages on my app, and each one of them has it's own view those are the states: login posts posts.post cities cities.post I place "posts.post" and "cities.post" to be a son of posts ...
0
votes
1answer
23 views

How to wrap route's business logic to forward to other routes?

I have a ui-router route front My intention is that when the app goes to front, front will use some business logic to redirect to another route: front.register, front.login, front.loginFirstTime, ...
0
votes
3answers
20 views

Ui-router modal injection error on minification

I'm using ui-router and ui-bootstrap/modal I've got a sale screen split in 2 so I have a left side with the cart and the right one can have the catalog, an edit product or a payment section. I need ...
0
votes
1answer
21 views

angular ui router state with search elements

Main question: is it possible to use $state.go() with custom search elements populated by $location.search(e,v)? Or maybe I need to use $location.path() each time I would like to make such transition? ...
1
vote
2answers
19 views

Acess parameters of parent state from child state in stateChangeStart

Is there any way to get the parameters from parent state. My states look like this. $stateProvider .state('home', { url: '/home/:param1', template: ...
0
votes
1answer
31 views

Angular UI-Router: Multiple URLs to single state

I have started using angular's ui-router, and I am trying to figure out how to have multiple URLS refer to a single state. For example: /orgs/12354/overview //retyrns the same pages as /org/overview ...
0
votes
1answer
46 views

Angular UI Router not matching URL path

When I go to localhost:3000/login, I'm redirected to localhost:3000/login#/login. How is that happening? I'm using the 1.3 release of AngularJS if that matters. (function() { ...
0
votes
1answer
23 views

UI-Router Resolve In Infinite Loop On Promise Failure

I'm trying to redirect users based on authentication so within the resolve of each route state I've placed my service for checking for authentication so in this case login and dashboard. ...
0
votes
1answer
26 views

Load Controller based on state params using Angular ui-router

I am trying to load a controller based on a stateparam to make it reusable .state("dashboard.item.detail", { url: "/detailId/:detailId/detailName/:detailName", views: { ...
0
votes
1answer
46 views

How can I reliably redirect a user in my angular app, without any hackiness?

Sometimes mysteriously throughout my working with angular projects, redirecting to different routes / states (in the case of ui-router projects) simply does not work. No errors in console, the line of ...
0
votes
1answer
12 views

When routing to a nested UI-router-state, how can I inspect which nested state will be called from the parent?

I'm using the Angular UI-router module to navigate to a nested state. I have a state called program, and a state called program.dashboard. Whenever a user routes to program (without providing a ...
1
vote
0answers
25 views

AngularJs freezing when dynamically loading controller with OcLazyLoad

I am creating an angular application and would like dynamically load the controller. I see you can use a module called ocLazyLoad (found here https://github.com/ocombe/ocLazyLoad) Now i am sure i ...
0
votes
2answers
39 views

Why to use abstract keyword in angular js?

I recently started with Ionic framework but to begin with Ionic Angular.js is pre-requisite. Can any one please tell me why do we use abstract keyword in nested ui-router. I was unable to find a good ...
1
vote
1answer
22 views

Angular UI Router ignoring HTML5 Mode off

Angular UI Router is ignoring HTML5Mode(false), and it's rendering links in a way that can't be bookmarked or directly landing upon: app.js: $stateProvider .state('search', { url: ...
0
votes
0answers
28 views

Hide visiblity of UI router

I have specified route as .state('executive.vieworder', { abstarct: true, url: '/order/:id/', templateUrl: './partials/order/view.html', ...
-1
votes
0answers
33 views

Best practice structure for AngularJS app with UI-Router and/or nested modules

After doing a whole lot of research and reading, I'd like a little guidance on my AngularJS app structure and routing. I have an app called DataHub that will remind you of a Google Drive-style use ...
0
votes
0answers
20 views

How to use vertical navbar in combination with ui-router to place partials into the main content area

I would like to split my page into a vertical navbar section (to the left), and a main content area (to the right), and have my partial views, which correspond to different navigation choices, show up ...
0
votes
3answers
27 views

angularjs - same controller, different methods/variable for different routes

Is there a way to have the same controller, but exposes different scope methods/variable for different routes? I am currently using ui-router and would like to expose different methods/variables for ...
1
vote
1answer
92 views

Nested views with nested states in AngularJS

I'm trying to make nested states, but something is wrong and I can't figure out why. I have these states in my angular app: /client (list clients) /client/:id (show client) /client/new (new client) ...
1
vote
1answer
22 views

Angularjs UI-Router: Incorrectly interpreting url path as paremeter in $urlRouterProvider

I have the following setup in my $stateProvider: $stateProvider .state('main.newworkspace', { url: "/workspace/new", templateUrl: "views/main/newworkspace.html", ...
0
votes
0answers
23 views

controller methods matching ui-router states

In my stateProvider, I am trying to following a more RESTful approach but given the controllers in Angularjs can contain all sorts of functions, I want to encapsulate the different routes to an ...
1
vote
0answers
34 views

Angular UI router and modal window

How does one use ui router to open a modal window without replacing the content of the "window" behind modal. I tried various ways of opening modal and had different results, depending how I set up ...
0
votes
2answers
24 views

Unit testing angular-ui router maximum callstack

I'm new to angular-ui-router and I've been trying to do some unit testing for a basic authentication, its working fine until I hit a maximum call stack error. I've narrowed the error down to the ...
0
votes
1answer
22 views

Is it possible to switch between angular views without reloading in ui-router?

I have an angualr app with 2 views, the map view (state: app.map) and list view (state: app.list). After the data is loaded, I want to allow the user freely switch between the 2 views without ...
0
votes
2answers
28 views

What are the benefits of returning a function in templateURL?

From https://github.com/angular-ui/ui-router/wiki templateUrl can also be a function that returns a url. It takes one preset parameter, stateParams, which is not injected. ...
0
votes
0answers
34 views

Angular ng-animate when using the same ui-view

In parent template I'm specifying ui-view where the child view should appear, I also include animation, like this: <div class="am-fade-and-slide-bottom" ui-view></div> So I want ...
0
votes
0answers
16 views

Avoid DOM reload of wrapped jQuery plugin in AngularJS on change view

I have a single page application built with AngularJS. The views are managed through AngularUI Router. In some of these views, there are jQuery plugins that are called with AngularUI jQuery ...
0
votes
1answer
43 views

injecting ui-router resolve to directive

i am using ui-router and there i am resolving some data i want to inject the resolve to my custom directive ,below is code how i am doing module portal { $stateProvider.state('portal', { ...
1
vote
1answer
39 views

How to inject state parameter automatically

Abstract Hi, I'm using angular + ui-router in my project, I have huge amount of nested states and different views that in turn contain huge amount of different inputs, a user fills these inputs ...
0
votes
1answer
24 views

angularjs controller not executing sequentially when using asynchronous service

I'm having trouble figuring out a way to use local variables in a controller that contains an asynchronous call. Is there a way to force the controller to run [at least some of] the code sequentially? ...
0
votes
1answer
14 views

How can I use $stateprovider to dynamically create states for each node of a tree?

In my application users are traversing a tree that can get a little deep. Each level of the tree is populated via a rest call. The page however remains oblivious to the traversal happening inside it, ...
2
votes
1answer
37 views

UI Router changing URL but not page

I'm not able to get UI Router to work properly on my page. It works fine for the navigation links, but not for the specific section I'm working on. I was able to recreate the issue in a plnkr ...
0
votes
0answers
29 views
+50

How to access application from Mobile

I'm using Yeoman + AngularJS + Ui Router. When I`m used ng-router its possible open mobile browser (local-ip):9000 and use app, but with Ui Router I can not do the same. Should I setup something? For ...
0
votes
0answers
24 views

Angular html5Mode not reacting as expected when entering manually a url

I have been trying to make my site work correctly with html5Mode. My server is written with c# mvc.net. I have angular-ui-router. I have succeeded making the site work without the preceding #, and ...
0
votes
0answers
21 views

Angular route and filters to share state of the app

A question about filters and routes - if the application is in a state after the user has picked a load of filters, is it possible to share the url so another user receives the same state. for ...
1
vote
1answer
19 views

AngularJS multiple routes using JSON data ids

We are new to AngularJS and finding one-or-two problems with setting up multiple routes when using ID's from Json Data. We are trying to replicate AngularJS Tutorial, so we can click each 'View' ...
0
votes
0answers
8 views

UI Router: get access to currently pending transition

Docs for the $state says, that we can access currently pending transition via $state.transition property. I explored this property after $stateChangeStart event (& before $stateChangeSuccess ...
1
vote
1answer
41 views

Navigate between states with <a> </a> tag on click

How to navigate between states defined by $stateProvider on click of <a> </a> tag Here's is my state.. $stateProvider //region page States .state('page1', { url: ...
0
votes
1answer
45 views

ui.router 'otherwise' doesn't seems to work

I'm trying to get ui.router to work with the following setup. export class Router { /* tslint:disable no-unused-variable */ private static $inject: string[] = ["$stateProvider", ...
1
vote
1answer
31 views

How can I have multiple instances of one controller for multiple templates

Trying to use a reusable controller for a generic template html <div class="row col-lg-10 pull-right"> <div ng-init="catId = 1" ui-view="firstQuadrant"></div> <div ...
1
vote
1answer
16 views

ui-sref error when use special character in params

Here is my code <a ui-sref="exeprofile({pname:@event})"></a> there is a '@' in the paramater ,so I get error tips like this 'Error: [$parse:lexerr] Lexer Error: Unexpected next ...