Tagged Questions
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.
0
votes
2answers
30 views
how to reload child state in angular js
<li ui-sref=".overview"
ui-sref-active="currentState"
ui-sref-opts="{reload:true}">Flavors</li>
Config:
.state('azure.overview', {
url:'/azureOverview',
templateUrl ...
0
votes
1answer
35 views
ui-sref active is not working
ui-sref-active is not working for following scenario:
<li ui-sref=".flavors({trigger:value })" ui-sref-active="currentState">Flavors</li>
I have used $state for knowing state name ...
0
votes
1answer
25 views
Inject at same time a service and provider in angular configuration
I have an angular configuration:
(function () {
'use strict';
angular
.module("app.functionality")
.config(config);
// ...
0
votes
0answers
14 views
How to move to a particular state on click of browser back without affecting ui-router state machine
I am creating a secured website (using AngularJS 1.3) where I want to redirect the user to 'Login' state if he clicks browser back button. I am using ui-router for state changes, and I make use ...
0
votes
0answers
9 views
Back button issue while using ui-router
I am using ui-router to navigate to different views in my website, when I press browser's back button, the url is shown correctly for previous page but the blank page is shown, so I need to manually ...
0
votes
0answers
23 views
AngularJS UI-SREF loads everything but controller
if you look at chrome dev tools once its loaded : http://imgur.com/iyZXzmj
https://young-fjord-8268.herokuapp.com/
***** There is a Link to a github with the source once you open the heroku demo. I ...
0
votes
1answer
24 views
in ui-router, how to re-resolve only the most local state?
I have the following state tree, using ui-router,
1 login
2 root (abstract, resolves app-prefs, user-prefs)
2.1 home (builds a refresh button, should refresh whatever is being shown)
...
0
votes
1answer
14 views
UI Router with Cordova and Ionic issue
I have to implement a two screen registration,
after 1st time I register - I want to disable ui-router state, that even if the application is shutdown or restarted, It will preserve the same ...
1
vote
1answer
27 views
Reload page on browser back/forward button in AngularJS with ui router
I have the following config for ui router state in my angularjs app.
$locationProvider.html5Mode(true);
$stateProvider
.state('index', {
url: '/index?zoom¢er',
...
0
votes
1answer
14 views
Why are watchers not firing when ui-router state data is changed on parent?
I am unable to get a $scope.$watch or $scope.$watchCollection to trigger when updating $state.current.data from a parent view.
I've created a plunker to demonstrate: ...
1
vote
1answer
18 views
How to set a Nested view inside a multiple views
I've two named views and an unnamed view as the follow:
//department.html
<div class="col-md-2">
<div ui-view="sideBar"></div>
</div>
<div class="col-md-10">
...
0
votes
0answers
11 views
What is the idiomatic way to store state in Angular UI Router for a pull page refresh?
I'm trying to maintain state in my AngularJS app, so that when a user refreshes the page, they will be directed to the state they are in prior to the refresh. Beside's using the $location service to ...
1
vote
2answers
19 views
Can not reset stateChangeStart listener
In the root of my app I have the following listener to check for Authentication/
$rootScope.setStateChangeDefault = function(){
$rootScope.$on('$stateChangeStart', function(ev, to, toParams, ...
0
votes
1answer
12 views
How to load view in zend 1?
I am new to zend and integrating angular in zend. Using zend 1. I want to write action in my controller that will load/return given view. So I can use that action in temaplateUrl in my app.js for ...
0
votes
1answer
25 views
Angular html5 mode with fallback
I'm working on an angular application that has been around for a while.
So far I've used the normal # mode, without any prefix.
The application has quite some content so some of the customers might ...
0
votes
0answers
27 views
space after ui-view but nothing to do with CSS
Ok, this is a strange one.
I asked a question before about this, but I mistook this for a CSS issue but it appears to be something to do with ui-router / ngRoute (As this was happening before I ...
0
votes
1answer
13 views
ui-router StateChange event go through even with redirection
I am developping an OAuth Provider application, using AngularJS and ui-router.
For each state change, I do the following check:
If the user is already logged in:
1.1 If the user is not an admin -> ...
0
votes
1answer
22 views
How to switch to a ui-router state conditionally?
I am writing a CRUD app with AngularJS + UI Router.
I want to be able to parse the current location in the browser URL and determine if a ui-router state should be applicable for the current url.
In ...
0
votes
1answer
19 views
ui-router and Angularjs issue
https://thinkster.io/mean-stack-tutorial/ Question comes from this tutorial pretty much. See section - Angular Routing, if neccesary. here's my index.html -
<html>
<head>
...
1
vote
1answer
26 views
ui-view won't render template two levels in, Could not resolve from state
I've been struggling a bit with understanding angular's ui-router.
What I'm trying to accomplish here is loading of template's within a a ui-view which is 2 levels in.
The main page, which ...
-3
votes
0answers
23 views
why can't display my new page?
.state('tab.confim', {
url: '/confirm/:brandid/:price/:value',
views: {
'tab-malls': {
templateUrl: 'templates/tab-confirm.html',
...
0
votes
0answers
8 views
Spring boot + OCPSoft urlRewriter + angular ui router html5mode
I'm trying to integrate Spring boot with OCPSoft urlRewriter and using angular ui-router in html5mode, my configuration is this:
The main of Spring boot:
@SpringBootApplication
//@EnableWebMvc
...
0
votes
2answers
19 views
Routing between apps
Can anyone help how to provide routing between different apps....we are basically looking for If we add another app in our application, the integration process should be simple and previous code ...
0
votes
0answers
18 views
angularjs: $stateChangeStart not fired with same-level nested states
In app-config i've got this states:
$stateProvider
.state('main', {
url: "/main",
templateUrl: "partials/main.html"
})
...
0
votes
0answers
5 views
AngularJS + UI-Router App - IE prompts for login, username and password
I'm having an angularjs app that uses tokens (OAuth2) based authentication with a server side. Basically the user logins once then the access_token and refresh_token are saved in the localStorage and ...
0
votes
1answer
16 views
Angular UI router error Could not resolve 'child.state' from 'parent'
I'm having the above error in angular ui router when trying to load a state. I'm trying to have vertical tabs which, when clicked, give details right next to the tabs. I'm using resolve to get the ...
0
votes
1answer
30 views
How can I use a non-capturing group with Angular Router UI
Trying to create a URL matching for a configuration page on my Angular site. I'm using Angular Router UI and according to the documentation it should be possible to match non-capturing groups.
What ...
0
votes
0answers
6 views
Angular UIRouter cancel/abort resolves
I've been using the powerful ui-router with angular and have used the resolve functionality extensively. In my application, I have the following state:
.state('main.client', {
abstract: ...
0
votes
2answers
28 views
Alternative to $element.isolateScope() when debugInfoEnabled is false?
Using Angular 1.3.15, UI Bootstrap 0.12.1 and UI Router 0.2.13.
Given this markup:
<tabset type="tabs">
<tab ui-sref="home.state1" ui-tabbed-state heading="tab1"></tab>
...
0
votes
1answer
10 views
ui-route substates without nested views
As you can notice in the following code, I would like to have a view for the parent "colors" state (which will show a table with list of colors), and then each color should have it's own view, not ...
1
vote
1answer
30 views
unable to pass data between the views in angularjs through routing
In my angularjs app, I am trying to pass the data from one cshtml view to another view through routing but in details.cshtml, I don't see the data coming into it though I can see the change in URL
...
0
votes
1answer
24 views
AngularJS UI Router nested view not loading content
I've looked at countless examples of how to set this up. Many right here at SO. But nothing is working in my case. It's a very simple set of two views, one nested below the first. Second ui-view never ...
0
votes
1answer
17 views
$stateParams field is undefined if not located within its corresponding ui-view
I am trying for a parent state/view to access a child state/view. I am looking for a workaround.
My state provider configuration is as follows:
.state('advertisement', {
url: '/advertisement', ...
0
votes
0answers
35 views
How to get ng-model data from a input into a state.go() call with ng-click on a button?
I have an input field and a button. I'd like the text from the input to be sent to my controller someway or another.
I have tried this. The state transition works, the view loads, but searchText ...
2
votes
2answers
66 views
Angular-UI Router: Nested Views Not Working
Building a multi-step form (“wizard”). Was originally following this tutorial, which worked great, but am now trying to adapt it so step one is embedded on the homepage rather than being a separate ...
0
votes
0answers
13 views
MEAN.js Unknown provider: $routeProvider <- $route
I want to reload page after update, so $location.path('route'); doesn't work. I have found, that $route.reload(); might work, but not in MEAN.js, because an application throws following error:
...
0
votes
0answers
10 views
Passing updated parameters to a nested ui-view, AngularJS and UI-Router
I am using UI-Router and multiple nested named views. One of my pages, Company, has a sub section concerning Jobs. Jobs need to know the active Company, as well as access to a slew of other services ...
0
votes
2answers
31 views
Multiple Optional Parameters with Angular JS ( UI-Router)
I have a page which displays products from a JSON REST web service. Not sure if this is the best way, but I am trying to use query parameters on the page to be able to filter based on MinPrice and ...
0
votes
1answer
23 views
AngularJS UI Router: add variable to scope of state without specifying it in URL
I want to pass the attribute film.title to the state template without having to specify it in the state URL.
index.html:
<a ui-sref="showtimes({ filmId: film.uid, filmTitle: film.title })">
...
1
vote
3answers
34 views
Angular ui-router… Display default tab
I am arriving on bookDetails state form some other link. Here bookDetails state's template has links for different tabs (or templates). And associated controller EditBookController has a json file ...
0
votes
1answer
36 views
How to attach navbar only on certain pages using ui-router?
How to display a navbar on every page except landingpage, so that not have to attach a navbar file on each of needed pages? Now I have enclosed navbar on main app layout, how it should be handled to ...
0
votes
2answers
31 views
Angular ui route doesn't activate the controller
In the following view
<div ng-repeat="make in makes | orderBy: 'name'">
<a ui-sref="modal.models({make: make._id})">
<li>{{make.name}}</li>
</a>
</div>
...
0
votes
0answers
44 views
Google's new reCaptcha breaks angular with ui-router
When I tick the recaptcha box, ui-router seems to break down. All links with ui-sref attributes on the page stops working, but I get no error messages. Please look at this plunker that I've set up. Do ...
-1
votes
0answers
23 views
Best way to structure shared angular components?
I'm going to have many angular apps, all sharing different components with each other. The first thing that came to mind is to put all the ui-router .state() calls into re-usable modules, and then ...
1
vote
1answer
15 views
Multi-View Form AngularJS reroute
I have been experimenting with a few ways to create this form.
Scotch seemed to have a great tutorial with nested views.
This is the part of the JS file I assume the problems occur.
I created a ...
0
votes
1answer
20 views
Cannot Get Partial View To Show — Jade/Angular
I am using this boilerplate: https://github.com/jakemmarsh/angularjs-gulp-browserify-boilerplate
I added support for Jade in regards to Gulp and it builds out the Jade files into HTML files.
When it ...
1
vote
1answer
32 views
Use angular ui route to pass query parameters
I'm using Angular ui route and I'm trying to pass query parameters but it doesn't work. I have followed the official wiki.
In the view I have the following code very simple
<div ...
0
votes
2answers
25 views
Angular JS IE9 Hashbang url rewriting
Quite an odd situation here.
So I have two routes: /RouteA (/ also defaults to here) and /RouteB
/RouteA actually uses client side routing while /RouteB does not if that matters.
When I try ...
0
votes
2answers
34 views
AngularJS UI-Router does not work as the way ng-router works
I'm trying to use angular ui-router library which has more features than the ng-router.
However, ng-router works in the page while ui-router does not work.
Angular Code
$stateProvider
...
-1
votes
1answer
46 views
what does ^ mean in AngularJS
What do the '^.^' and '^' strings mean in this AngularJS code?
if (isFilterState()) {
$state.go('^.^.' + report.subtype, {id: report.id});
} else {
$state.go('^.' + report.subtype, {id: ...