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
2answers
11 views

One ui-sref link working, the rest don't

I've got a page where I three links on an Angular template. The first link works, the second two don't. The first link shows the cursor as a pointer, the second two show the cursor as auto/default. ...
0
votes
1answer
16 views

Changing Angular UI router app root from “#” to something else

When I implement angular UI router in my app, my view URL appears as : www.example.com/serverpath#/UIRouterPath1 www.example.com/serverpath#/UIRouterPath2 Now I want to change to something like ...
0
votes
1answer
16 views

How do I redirect mydomain.com to mydomain.com/#/ using nginx?

I am using Angular Ui-Router in my web app. Right now I have to use mydomain.com/#/ to access this. How do I redirect users from mydomain.com to mydomain.com/#/ in nginx ?
0
votes
0answers
21 views

42 mins to 2016 to cover 1 line of code

I can't menage to code coverage this $state changing service: ($state) -> @$inject = ["$state"] -> $state.go "home.about" This is my test wich fails last 2 expects mock = require "mock" ...
1
vote
1answer
19 views

Angular ui-router hide based on roles

I'm using Angularjs with ui-router to navigate within my web app. I'm using Web Api as my backend. I used a tutorial from Taiseer Joudeh to implement authentication and authorization. now that part ...
6
votes
2answers
60 views

why splice not work properly in angular js

I am trying to make one demo in which i have one checkbox list .I am able to display the list using ng-repeat . What I need if user click on one check box(only one checkbox is checked) .it display ...
0
votes
1answer
24 views

AngularJS/UI-Router: How do I use one controller with multiple named views?

I have a child state that fills up named views in the parent state (header, content). They both share the same data, however, and I don't want make a redundant second controller but seems like that's ...
0
votes
1answer
14 views

Assigning separate controller files in Angular's UI Router

I am new to Angular and Angular's UI Router. I have a basic index.html file in which I inject the views. And then I have app.js with the routes inside, a template client.html and a controller about ...
0
votes
1answer
6 views

Pushing data from Angular Bootstrap Typeahead into another tab using UI-Router

I have 3 tabs: customers, billing, and method. On the first tab I have the Bootstrap Typeahead, that is connected to a json file of customers. The second tab is a detailed view of the customer account ...
1
vote
1answer
15 views

Multiple Views in one Tab

Here is a simple example of what I'm trying to do. I have 2 tabs (Home and News) and 3 views (Home, News and Details). When I click on the Home and News tabs, it displays respectively the Home and ...
1
vote
0answers
24 views

Angular UI-Router

I am new to Angular.js and was trying to create a link that displays a form when clicked on, but it doesn't seem to work. this my index.html <!DOCTYPE> <html ng-app="MyApp"> ...
0
votes
0answers
18 views

AngularJS, UIRouter – Transclude HTML into ui-view

I wanted to pass some HTML into an ui-view, much like you would do with a normal directive. However, I can't seem to understand if ui-view supports it or not. I'm doing this, currently: <div ...
1
vote
2answers
24 views

confirm email address using Angularjs

The backend has created user and needs the email to be confirmed and it has sent out an to the address (see below) Please confirm your account by clicking after clicking on the link the user goes ...
0
votes
0answers
10 views

Mean JS : Multiple view - Can not access route

I am trying to create a MEAN app where i have two users one administrator and other one is customer. I am facing some trouble in accessing the routes inside the admin/index.ejs. First of all i will ...
1
vote
1answer
23 views

TypeScript Build Error : Property does not exist on type 'IStateParamsService'

I am using TypeScript almost entire of my client project. Currently I am facing a technical problem. In my HTML, I have an anchor tag like below : <a class="btn btn-default mrm" ...
0
votes
1answer
18 views

How to enable event default in anchor click in Angular ui-router

Basically I'm asking this gentleman's question: How to disable static url in angular ui-router? My DOM structure looks like this: <div ui-view> <a ...
0
votes
2answers
28 views

ui-sref not generating the href

I'm not sure what is the mistake I'm doing here but the href is not generating. I have configured as per ui-router example but when I put the ui-sref in the ng-repeat its not generating the URL and ...
1
vote
1answer
16 views

Using resolved data in subsequent call

I am learning how to use resolve in ui-router. So far I have this in my state (which is a parent state): resolve: { currentApp: function(appService) { return appService.retrieve(); ...
2
votes
2answers
48 views

Angular ui.router default header footer

When it comes to ui.router modules I can think of three different ways to set a default header and footer for every view: DEFAULT HEADER <CONTENT> DEFAULT FOOTER 1. ng-include - attaching ...
1
vote
1answer
17 views

$urlProvider not resolvable in controller

I can inject $urlProvider in module.config() but when i try to do it in module.controller() I am getting this error: Unknown provider: $urlRouterProviderProvider <- $urlRouterProvider <- MyCtrl ...
0
votes
1answer
14 views

Share resolve in Angular UI Router

I have various states that use the same resolve to load a timeLog into my controller $scope before the controller loads. I would like to not reproduce this code but share it between these views. I'm ...
0
votes
0answers
18 views

AngularJS ui-router - overwrite child data in parent state

i have setup parent and child states using ui-router: $stateProvider .state( 'profilePage', { url: '/u/:user', templateUrl: 'app/user/profilePage/profilePage.html', data: ...
1
vote
1answer
24 views

Check angular ui route state using protractor

I'm using protractor framework to test my angular application. Can I check for the angular state in the e2e test?
0
votes
1answer
31 views

How can I lazy configure types of angular formly?

I'm trying to lazy configure custom types of angular-formly with ocLazyLoad but I cannot. When the state is executing I'm trying to call the setType function but the page does not load anything after ...
0
votes
0answers
10 views

How to white-list Angular route parameters so that others receive 404?

In Angular 1.3 if I define route parameters how can I white-list values accepted? Unrecognized values would throw 404. when('/subscriptions/:provider', { resolve: { items: function($route) { ...
0
votes
1answer
16 views

UI Router States Not Connecting w/ Navigation

Hi — I'm building a large scale Angular spa with UI Router. I have an animated navigation bar and I can't get it to sync up with the next/prev buttons. The animated bar also doesn't remain in place on ...
0
votes
1answer
22 views

ui-router | resolve dependency | force reload | force refresh

I have this in my app.js: .state('tab.interview', { url: '/interview/:survey_id', views: { 'tab.interview': { templateUrl: 'templates/tab.interview.html', controller: ...
0
votes
4answers
28 views

Angular Ui-router Resolve concept

I was reading the docs of ui-router but I couldn't grasp the concept of resolves for controllers in each state. I am not able to figure out where should we use resolve and why the controller attached ...
0
votes
1answer
42 views

Angular Routes- force reload/new data in dynamic URL

When I click a "product" in my app, it uses the URL (#/product/123) to identify the product. I then use a .split function to tell the API where to pull the individual product detail from. It loads ...
0
votes
0answers
18 views

AngularJS: clicking on active tab removes location hash tag

I am using UI-router with sticky states. For the hash tag functionality below, I use $location.hash() as the getter/setter. I have a tabbed AngularJS app where there are sticky states (so when I ...
5
votes
1answer
181 views

How can I have a view retain its nested child state upon return as opposed to going to its parent using ui-router?

Im created tabs using ui-router where some of tabs have children/grandchildren states. How can I have tab view remember its history, that is, go back into its previous used state upon return. I ...
1
vote
2answers
32 views

How do hide/show element of parent view?

I'm having trouble with the design pattern of a form I have in Angularjs using ui-ruoter. I have a parent template which has some buttons, such as 'edit' and 'delete'. I then inside this parent have ...
0
votes
0answers
25 views

AngularJS : Browser back does not work with UI-Router with $state.go

I am building a page with TABs with Sub-Menu, as shown in link below using ui-router to achieve this. See the code snippet: http://plnkr.co/edit/OoywuaKkYLtYcVG659Mw?p=preview Final UI will look ...
0
votes
0answers
11 views

Update the ui-sref parameter of a parent state from a child state

I am using ui-router and am attempting to build a tabbed form. I have a parent state that has a listing of tabs: <li ui-sref-active="active"><a ui-sref=".listing"><i class="fa ...
2
votes
0answers
21 views

$ionicLoading templateUrl not working

app.js angular.module('starter', ['ionic', 'starter.controllers', 'services']) .run(function ($rootScope, $ionicPlatform, $ionicLoading) { $ionicPlatform.ready(function () { // Hide ...
1
vote
1answer
12 views

Active child state stays active when it shouldn't using ng-class and ui-router

My current working on nested states (with many nested states) using ui-router and can get the state to change to an active state using ng-class like so ...
1
vote
0answers
17 views

Angular UI router only loading ui-view content on manual URL update

I have started a MEAN application in which I am trying to implement angular-ui-router (for the first time). Initially loading the content from the base url (localhost:3000) works as expected, and ...
3
votes
1answer
100 views

What's the equivalent of state params (Angular1 & ui-router) in Angular2?

In Angular1 and ui-router I used states params a lot to pass data from one state to another (without using URL parameters). Is it possible in Angular2? Router, RouteParams, RouterLink and RouteData ...
0
votes
1answer
40 views

How to inject dependencies in directive controller

I am using ui-router in my angular application. Below application is not the actual app but it minimal small app that represent my issue. Any sort of help is appreciated. I have used resolve while ...
2
votes
1answer
17 views

Registering State Changes of Angular UI Router

If a state change occurs, I want to apply a function. But following watch provides me no proper information! All the time, I get undefined. What is my mistake? Root Controller (excerpt) ...
0
votes
1answer
34 views

ui router - Passing data from controller to another view

Without injecting services how to pass data from one view's controller to another view. I refered data,params, resolve, parent-child concepts but I am not able to figured it out. Here is the ...
0
votes
1answer
23 views

Stuck at Anglular ui-router State.go with hash url?

I am working on ui-router. I have a state: .state('new-personal-orders', { url: '/orders/new-personal-orders/:catId?', template: '<new-personal-orders></new-personal-orders>' }) ...
-1
votes
0answers
21 views

scope is not sharing between multiple views in a same state with same controller in angularjs ui router

When i am changing any ng-model in header.html (section) its not reflecting in home.html (section) in the same page. Below is my code for ui .router var app = angular.module('testApp', ...
-2
votes
0answers
31 views

ui-router $stateChangeError occured: undefined

Everything was working fine until I have rebase my code with the master branch. I am now getting the following $stateChangeError occured: undefined How can I debug that ?
0
votes
1answer
39 views

Radio Button is not checked if I click an anchor in its label area

Currently I've the following phenomenon: Radio Button ist not checked if I klick an anchor (in the case below Menu 1 to n) in its label area . The label area is styled as grey background and has a ...
1
vote
0answers
55 views

Anjularjs add/register Controller dynamically

In my angular app, I have two pages. First page have static controller. Want to add Second page controller file dynamically. I tried to load JS file using this funcion function loadJS() { ...
0
votes
2answers
34 views

How to let JQuery affect divs inside an ui-view?

I am trying to add animations to divs inside an ui-view. But it looks like the jquery is not affecting my divs. When i add the divs outside the ui-view directily into index.html it is working though. ...
2
votes
0answers
22 views

Using one Google Maps instance on different states in Ionic Framework / Angular JS

In my Ionic Framework app I use this state: .state('tab.map', { cache: false, url: '/map', params: {'location': null}, views: { 'tab-map': { ...
0
votes
0answers
18 views

Resource ID in url

I am developing enterprise application in angularjs. I am using ui-router plugin for routing. To get the particular resource (For example, get the customer with id "2401"), the URL would be like ...
0
votes
1answer
19 views

Angular UI route states are not showing up

so i have been following a tutorial on how to use AngularJS ui route. I manage to get the views working just fine. However in trying to get the states to work and its just not working. I followed the ...