UI-Router evolves the concept of an AngularJS Route into a more general concept of a State for managing complex application UI states. Most notably, it allows nested state/view hierarchies and multiple named views.

learn more… | top users | synonyms (2)

0
votes
0answers
6 views

How to use “map” style query parameters on uiRouter on angular 1?

I'd need to have urls like this #/users?filter[name]=John&filter[last_name]=Lennon And I'd need to retrieve these values from the controller and generate ui-sref links with these values. If ...
0
votes
0answers
5 views

Using ui-router metatags in the stateprovider with global vars load by json

I'm stuck in this! i have a json file which i have all the meta tags info. to which one of my state. How is possible to pass those global vars to the stateProvider using expressions? I'm using ui....
1
vote
0answers
19 views

AngularJS form validation : $dirty value change through ui.router state changes

My use case : I have a multi step form using ui-router like in the plunkr below. I use ng-form to validate information provided by AngularJS, like $valid, $dirty etc. After each click on the "Next ...
0
votes
0answers
10 views

angular ui router with play framework 2.4

I want to switch from play routing to angular routing so I would like to use angular ui router. I have a problem with how to use "templateUrl". I found this example which work on play 2.5 with ...
0
votes
0answers
19 views

Cannot load state in nested format after login

I have a login page which should load dashboard with common header, sidenav and the uncommon content part. However, I am just able to see loader of common part and it does not stops. $stateProvider ...
0
votes
1answer
16 views

AngularJS Googlebot Fetch & Render and Page Speed Insights does not render ui-view content

I am developing an angularJS website which uses UI-Router. On doing a fetch and render from google search console, the rendered view shows the HTML page without the contents of ui-view and ng-include. ...
0
votes
0answers
7 views

reloading a page gives “Cannot GET /dashboard/[email protected]” - angular ui-routing [duplicate]

this is the state : .state('userDashboard', { url : '/dashboard/:email', templateUrl : '/templates/dashboard.html', controller : 'dashboard' }) this is how I reach to this state: $state.go("...
0
votes
1answer
13 views

Angularjs & node best way to store route and post changes

What is the best way to send a request to the server on every time a angularjs client route changes ( angular to node)? I'm thinking about how I would store what page the user is visiting . What ...
-1
votes
1answer
22 views

jQuery Syntax error, unrecognized expression using Angular, Angular UI-Router and Materialize Together

I'm using several libraries with this project. The one that is complaining is jQuery. I'm not sure that jQuery is actually the culprit here. I've tried several different methods to get the desired ...
0
votes
0answers
7 views

UI-router optional URL part

I'm building a web app in AngularJS 1 using ui-router. In one of my states the url is supposed to change based on a filter. The request is to make the URL look like this: '/categories/{categories}/...
0
votes
1answer
13 views

UI-Router 1.0.0-beta.2 and UI-Bootstrap 2.1.4 dropdown not closing

I'm using ui-route ui-sref in my links with the navbar using UI-Bootstrap dropdowns and if I use the anchor tag with href, the dropdown closes on click, but the anchor tags with ui-sref does not close ...
0
votes
1answer
21 views

Angular - Why won't my ui-view show my template html text?

I wonder why my template which I refer to in my angular state ('home') won't be shown - in my index.html I included a tag. Anyone knows?Thank you! app.js: var app = angular.module('portfolio', ['...
0
votes
0answers
15 views

angular-ui-router.d.ts cannot add the item

Visual Studio keeps pops up this error when opening my solution (which includes a project that has that file). How I can solve this error?
0
votes
1answer
14 views

The proper approach to generate components based on API data

I have a structure in my project that is something like this : Footer and header are nested views. index.html: <div data-ui-view="header"></div> <div data-...
2
votes
1answer
30 views

Angularjs Routing resolve

Let's say in 90-95% of my routes I need to check if user is in (let's say jail). Then, I'm currently doing something like: $routeProvider .when("/news", { templateUrl: "newsView.html", ...
0
votes
1answer
53 views

Angular ui-router does not see url search params after page refresh

I'm having problem with ui-router Angular. When reload the page disappear query params. i.e if i'm refresh page /mypage/foo?search_params=s, the disappear query params search_params=s and after ...
0
votes
1answer
26 views

Best structure for starting an angular js app?

i am creating a new angular js web app for a website, this will not be SPA. i will use these libs ui-router, ui-bootstrap, ngResource, in starting. so, can anyone help me by giving a sugession on ...
0
votes
0answers
19 views

Ui router $state unknown provider

I have a angular1.5 application with Typescript. I am trying to use ui router state. to load user token before resolving the route. I get an error: Uncaught Error: [$injector:modulerr] Failed to ...
0
votes
1answer
16 views

Search functionality: Update a different view from index.html

I have an REST api made in Laravel where I use AngularJS as Frontend. In my index.html I have a navbar which is visible in all views. On my navbar I'll implement a input field which should be use for ...
1
vote
0answers
41 views

Angular (angular-ui-router) - Access $stateParams inside $locationChangeSuccess interceptor

I've set up my route using angular UI-Router like this: routes.$inject = ['$stateProvider']; export default function routes($stateProvider) { $stateProvider .state('the/route', { url:...
1
vote
2answers
43 views

AngularJS using same controller for multiple views in single state

I am using angular 1.5 and UI route. Due to structure limitation we are loading under single state both filters view and content view(mostly for dataset presentation). I'm trying to achieve single-...
0
votes
1answer
17 views

Abstract state with template in ionic

I am working with ui-router AngularJS in Ionic Project. I have an abstract state where I nest my children's templates via <ion-nav-view> tag. The question is can I display some default data in ...
1
vote
1answer
21 views

AngularJs, UI-Router, ControllerAs & this, service/factory; Why it doesn`t work ? Where is mistake?

I am trying to use a service with a controller and UI-Router. I understand how to use it without UI-Router, and I have found a variant how to make it work with UI-Router and done it, but it doesn't ...
2
votes
0answers
71 views

AngularJS: script not working when view changes (ui-router)

I have an AngularJS web site with ui-router and I had to include a script from imdb which shows the movie rating. My problem is that the script seems to work only when the page is first loaded, but ...
-2
votes
0answers
21 views

unable to create ui-router structure using angularjs ui-router

I want to create the ruting structure in my project for notAuthenticated and Authenticated views. So, here is the structure.. level1 - Noauth.html (abstract) Level2 - Login, Register (child views) ...
-1
votes
1answer
20 views

angular ui-router- ajax call on load

We are developing an single page application using angular JS and I am using state provider for configuring routes. Basically there is a global navigation view and a dashboard view. I have to pass few ...
0
votes
1answer
21 views

UI-Router: Height:100% on body element ignoring nested view height

I'm building an angular application that frequently uses nested views. Certain views, however, are taller than the other elements on the page and end up extending well beyond the end of the parent ...
1
vote
1answer
38 views

ui-router, component won't bind with child state

That's probably a newb question, I'm just getting started with angular/uiRouter, I'd be glad if anyone with a more experienced eye can point me in the right direction. I am trying to bind a component ...
-1
votes
0answers
23 views

Angular JS Routing advice

I'm currently working on an enterprise self-service solution that's written in Angular 1.4.x. The app has gotten a lot bigger than initially planned. To help better organize the app i'm considering ...
0
votes
1answer
32 views

Angular ngRepeat increase $index and render view accordingly.

Consider that I've got two views, view1 and view2. I am getting an array from an API in View1. From there, I am trying to go to view2 and dynamically render view2 for as many times as there are ...
0
votes
1answer
20 views

How to make last slash optional in angular ui router?

I have two states like this: $stateProvider.state('app', { url: '/app', template: '<app-index></app-index>', data: {}, resolve: {} }); $...
-1
votes
1answer
20 views

Inject another(parent) controller logic into derived state (angularjs ui-router)

I am stucked with one problemm. I have one template URL but alot of variant of state. I have one parent state and other states is the childs. now it seens like this: angular .module("StN") ....
1
vote
0answers
20 views

Back button doesn't change the url when state changed

I'm using "stateChangeStart" in order to refresh the informations of the connected user . In the callback, there is a state.go with the url.name (asked state), the parameters and some options. It work ...
0
votes
0answers
17 views

Remove url request paramters when changing state in AngularJS

My current url is off the form below: abc.com?authCode=value#/state1 Now I am doing a state change (angular-ui-router) to go to a send state(I am also sending some state params): $state.go("...
0
votes
0answers
31 views

AngularJS UI router Cannot switch to a defined route at startup if a default route is defined

I am new to Angularjs. I want to load angular at startup with a given sate by using a cookie-vale at initialization time in the In App.run() method. That is I want to switch to predetermined state, ...
3
votes
1answer
29 views

child state not triggering the parent state in angular

I am using angular ui router, and have a parent abstract state ("home") and two child state ("home.ports" and "home.editPort"). state. "home.state" is a default state, so on page refresh when the home....
0
votes
2answers
11 views

Resyncing $urlRouterProvider.deferIntercept(); for angular 1 ui router

In Angular 1.5 and angular ui router, I want to change the back button behaviour of my states to recognise the names of the states and not the params as I have a url /restaurant/1?param1=value&...
0
votes
0answers
10 views

Click to scroll to views within states for angular-ui-router

I'm currently using named-views within a state in angular-ui-router to display several info-cards on the same state at once. It's a dashboard that has a sidenavbar with three sections, each having ...
0
votes
0answers
20 views

Angularjs ui-router routing - is this the behavior or an issue?

I'm using ui-router and set up routes(see below). I face the problem listed below. 1. when i type this url : localhost/service/#/account-summary/billing/32 it takes me to localhost/service/#/account-...
0
votes
0answers
34 views

Bootstrap Modal on AngularJS duplicates the whole <html> context of my site

I want to make a dialog to ask to the user for delete the content selected, in my implementation I have a button that calls angular-confirm that uses ui.bootstrap.modal, but, once I click the button ...
0
votes
1answer
18 views

How to routerLinkActive non anchor link

I have two links on my application component <a routerLink="/dashboard" routerLinkActive="active">Dashboard</a> --> app/dashboard <a routerLink="/heroes" routerLinkActive="active"...
0
votes
1answer
32 views

ui router - nested views with shared controller not working

I have an abstract parent view that is meant to share a controller with its nested views, before I have a main controller that is the principal of my app .state('main', { abstract: true, url: ...
0
votes
1answer
10 views

Using Angular UI router I would like to highlight abstract parent state and link to child concrete state

My main navigation should highlight items whenever any of the child states are being active i.e. <li ui-sref-active="selected"> <a ui-sref="settings">Settings</a> </li> ...
0
votes
2answers
24 views

using tabs in a ui-router app without states for each tab

I'm currently developing an angular appp with ui-router and want to use tabs in one view. As typical tabs implementation involves using relative links (#tabId) it conflicts with ui-router state change....
0
votes
0answers
4 views

ui-router: persist state params when calling $state.go

There's a route param that represents the current site language, defined in the abstract app state. angular.module("app", ["ui.router"]).config(["$stateProvider", function($stateProvider) { $...
2
votes
1answer
21 views

Angular ui-router resolve inheritance

I would like to create an abstract parent state, that has only one job: to resolve the current user through an ajax server call, and then pass this object to the child state. The problem is that the ...
0
votes
0answers
14 views

Ion-view gets title and ion-nav-buttons of previous view

The issue I have a single <ion-view>, the roles view, that is not getting it's title set correctly or <ion-nav-buttons side="right> updated. Instead it always picks up the title and ...
0
votes
1answer
58 views

How use controller variable inside a AngularJs directive

How use controller variable inside a directive . I used popoverHtml inside scope in directive but when i add type like this type not work : like this : scope: { popoverHtml:'@', type: @ }, my html ...
1
vote
1answer
65 views

How to dynamically update popover content AngularJS Bootstrap

I use custom AngularJs directive for create bootstrap popover but when make popover popover content can't change and it's fix . app.directive('nextLevel', function () { return { ...
0
votes
0answers
6 views

ionic.leave do not fire

I want to in an a tab view to fire a function when leaving a tab. I saw 'ionic.leave' function, but it did not fire when leaving the tab. did I have to add something to the controler, ui-router or the ...