0
votes
0answers
9 views

How to handle the scenario where the user triggers data loading by ui-sref AND route manipulation

In this plunker: http://plnkr.co/edit/aOOlXOUIUQTARb8D7jNR?p=preview I bind the 'mydate' in the DateplannerDayController and in the stateChangeStart event both to the $rootScope. I would like to ...
1
vote
1answer
42 views

What should be my approach for angularjs nested ajax calls [loop within a loop]?

| | | | A1 | | | | | AJAX 1 | --> | Response1 | --> | AJAX 2 | --> | Response2 (Final) | | | | [ARRAY]-A1 | | A1 ...
0
votes
0answers
8 views

Can one load in specific ui-router states depending on what CSS media query is active?

I am creating a responsive web app using Angular and ui-router. I need different states to be loaded depending on what size a user's browser window is via CSS media queries. e.g. For the main page ...
0
votes
1answer
26 views

I can't get datas from json file with angula.js

I have theses codes: index.html: <!DOCTYPE html> <html lang="en" ng-app="pizzasApp"> <head> <meta name="viewport" content="width=device-width, ...
0
votes
0answers
5 views

Save data and scroll of previous state when opening new state in modal window (Instagram/Pinterest routing)

I want to create routing like on the Instagram/Pinterest. In my case - open full article in the modal window. From FAQ I find this code: $stateProvider.state("items.add", { url: "/add", ...
1
vote
1answer
18 views

Are there any Typescript definitions for the AngularJS ui-router?

I am using typescript with ui-router. Has anyone found any Typescript definitions for this. I looked on definately typed and could see nothing. Here is what I would like to find an interface file ...
0
votes
1answer
29 views

Set an element's attribute text/value through an angular directive?

How do I set the text of an attr? Trying to set the values of meta tags description through it's content attr. <title update-title></title> <meta name="description" ...
1
vote
2answers
27 views

Angular ui-router fails to load let alone resolve factory dependencies [SOLVED]

Empty strings in the factory definition was the issue. Though the framework should define an error for this case as it'll help new comers. Thanks Sylwester & Marplesoft for answers. UI router ...
1
vote
2answers
25 views

html partial is not loaded into ui-view

I have posted a sample on plunker: http://plnkr.co/edit/aOOlXOUIUQTARb8D7jNR?p=preview I get no errors in my browser console. I want that when I switch the day/week/month views by pressing the ...
0
votes
1answer
24 views

Putting a “resolve” on an angular-ui-router view isn't working - the page simply doesn't render

$stateProvider .state('root', { url: '', views: { 'root.base': { templateUrl: '/templates/root/root.html' }, 'root.sidebar': { templateUrl: '/templates/root/root-sidebar.html', ...
1
vote
2answers
18 views

Why does AngularJS with ui-router keep firing the $stateChangeStart event?

I'm trying to block all ui-router state changes until I've authenticated the user: $rootScope.$on('$stateChangeStart', function (event, next, toParams) { if (!authenticated) { ...
0
votes
0answers
22 views

Angular ui-router ui-sref redirects back to calling page, even though destination page renders correctly

I'm a newb and have to be doing something stupid here, and I can't figure it out for the life of me. Thanks in advance for any help! In short, I have 3 pages that all load correctly when visiting ...
0
votes
1answer
8 views

params not working in $stateProvider in angular ui

For the following code sample, the params does not seem to take affect. but if I put the param as part of url then it works fine. Both are supposed to be equivalent. However putting in params ...
-1
votes
1answer
25 views

AngularJS UI-Router URL not loading and switching to /

I'm following the UI-Router Nested States & Nested Views : Abstract State code example from https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views#abstract-states and adapting ...
0
votes
2answers
26 views

How to access resolved date within root scope

In my app I have states that fetch various resources from server using resolve clause. I also have a global controller that need access to these resources. For example, consider a breadcrumb that ...
1
vote
0answers
25 views

Angular ui-router to accomplish a conditional view

I am asking a similar question to this question: UI Router conditional ui views?, but my situation is a little more complex and I cannot seem to get the provided answer to work. Basically, I have a ...
0
votes
1answer
22 views

Angular ui-router, how to get state associated with controller?

Plunkr demonstrating problem: http://plnkr.co/edit/Czc5kGpCwsruUQe2EanZ?p=preview With the states: .state('state1', { url: '/state1', template: '<div>state1 <pre>{{current | json ...
0
votes
1answer
47 views

Overriding named view templates while using angular-ui-router

Inside the root.app.work state or /work url, how do I change it's page template to <div>wtf</div>. UPDATE: I cant get root.app.work.show to properly route? it goes to 404 //routes.js ...
1
vote
1answer
30 views

AngularJS ui-router : Could not resolve___ from state ___ Error

I am following along on this year old ui-router tutorial http://txt.fliglio.com/2013/05/angularjs-state-management-with-ui-router/ and I'm getting the following error: Error: Could not resolve ...
0
votes
2answers
38 views

Angular UI-Router get the current state from within a view

Considering the following states taken from the ui-router documentation: .state('state1', { url: '/state1', templateUrl: 'partials/state1.html' controller: 'State1Ctrl' }) .state('state1.list', ...
0
votes
0answers
13 views

AngularJS ui-router- Use filters in ui-sref with parameters?

Suppose if we have to modify or do some prepossessing on parameters of ui-sref like below: ui-sref="post({postId: post.post_id, postTitle: post.post_title | myFilter )})" As shown if I want to ...
0
votes
1answer
28 views

Angularjs-ui-router:resolve in parent does not fire from children

In my angularjs app ,i have angular-ui-bootstrap tabs and on selection of tabs i change to different state using $state.go and with state transistion url on browser changes. I have parent static tab ...
-1
votes
1answer
34 views

How can I fix 'Maximum call stack size exceeded' AngularJS

I am using AngularJs and Ui-Router and I am trying to set two different home pages, one for users that are logged in and the other for users that aren't. But I am getting the following error: ...
0
votes
1answer
30 views

I am using MEAN.IO stack, why can't I hit my data-access layer using require?

So, I am using mean.io and for some reason, my routes.js never hits my 'index.all' method, or the 'exports.all' function, even though I require the functions from the server-side controller. Also, my ...
-1
votes
0answers
13 views

Use URLEncoded URL parameters in angular-ui router

When using $state.go(to, params, options) in angular-ui router, I would like to be able to have the params parameter saved in URLencoeded format so my URL can be bookmarked, and traversable through ...
0
votes
0answers
17 views

How to prevent user from navigating away when form is dirty

I have an angularJs app that requires authentication for most pages. I've implemented the checks similar to http://www.frederiknakstad.com/2014/02/09/ui-router-in-angular-client-side-auth/ In ...
0
votes
2answers
21 views

many controller for state in ui-router

how to add many controller for state in ui-router ? I have searched long and hard but found nothing that helped yet. Where I wrong? I really do not know what to do. I wrote all the details below. ...
0
votes
1answer
13 views

Prevent repaint of absolute/relative named views using ui-router

I have a site where there are three separate areas of content: content sidebar lightbox I want to load a different piece of content into each area depending on the url e.g. /content/1/ ...
0
votes
0answers
16 views

set route url when clicking on a button with ui-sref

This is my plunker: http://plnkr.co/edit/0DJ6W7QEPx2UzpdzDrVu?p=preview steps to reproduce the wrong behavior: 1.) Click on a project item and then the open button. 2.) Now you see the date planner ...
0
votes
1answer
16 views

How to re-render a directive template and link function?

I am creating a navigation "tree" that basically allows you to navigate to parent views like so Home > Planner > Contacts > [email protected] This list is just a normal <ul> that ...
1
vote
2answers
32 views

AngularJS - Passing data to remote controller from ui-router state & url

SOLVED: See below I have the following illustration with actual PLUNKER CODER HERE I have been successful in dynamically changing the left menu to 1 of 2 possibilities and well as the respective ...
0
votes
2answers
30 views

Angular UI router how can I redirect a deep link?

I am new to Angular UI router and am trying to understand how I can prevent users from using a saved hyperlink to jump into the middle of my app. I always want all favorites or otherwise memorized ...
0
votes
0answers
42 views

Tabs in angularjs not working properly with UI-Router and UI-bootstrap

I'm using a MEAN.js boilerplate, you can find the entire code here. I tried to add 2 new tabs to the page rendered after one of the articles have been selected from the list. For this task I decided ...
0
votes
3answers
42 views

Divert to alternate homepage if user is not logged in using UI-Router & AngularJS

I would like to have two home pages, the first would be for users who have not logged in and the second for users that are logged in. This is my current set up: .config(function ($stateProvider, ...
-1
votes
1answer
33 views

Routing in AngularJS

I am new to angular and trying to implement Routing in one of my sample application,but its not working.Can somebody guide what i am doing wrong.Here's the link of my sample app. <!DOCTYPE ...
1
vote
0answers
32 views

Using angular-ui-routing, why is my express routing not working?

I am using angular-ui/ui-routing. The problem lies with either my angular routing, or my server routing, I don't know which. My express routing is this: var compositions = ...
0
votes
1answer
25 views

Custom Angular provider not working but no error

I started a basic angular project using the yeoman angular generator. I added very few things to the app: angular.module('myApp', ['ui.router', 'ngAnimate', 'ngCookies', 'ngResource', ...
0
votes
1answer
31 views

How to efficiently architect the AngularUI ui-router state machine?

I am very new to the new AngularUI ui-router library that allows us to create nested views using a state machine configuration service and am trying to figure out the best way to architect my states. ...
0
votes
1answer
24 views

ui-router populating templateurl and controllers nested abstract states with nested views

I have been experimenting with ui-router and I ran into a bit of a quirk. I am unable to populate a view underneath an abstract state. It appears that while the state is active, the view is not ...
1
vote
1answer
37 views

UI Router fails to update URL in address bar after successful state change

I'm building a small Angular app and I'm currently using ui-router. I've hit a problem which looks awfully like a bug in ui-router but I can't be sure as I'm not that familiar with this library. When ...
2
votes
1answer
49 views

Variable changing value by itself?

I have a simple angular application that is just a table with pagination and sorting. The changes made to the table (searches, filters, sort ascending/descending, etc..) are reflected in the URL. I do ...
0
votes
0answers
17 views

ui-router multi page, multi view configuration

I am not able to configure ui-router efficiently for below display configuration I have following pages: p1. search p2.top : top-part always displayed p2.body : body-part has 3 section ...
0
votes
0answers
18 views

using regex in ui-router

when url is : http://localhost:25768/Admin/#/typeNews/PageSize=3/PageIndex=3 $stateParams.PageSize=/PageSize=3 $stateParams.PageIndex=/PageIndex=3 when url is : ...
0
votes
0answers
32 views

angular-ui-router testing: current state object has no actual meaning

I use angularjs v1.2.20, angular-mock v1.2.19, ui.route v0.2.10. For the next route I can't get working test. I have one route: angular.module('application') .config(function ($stateProvider, ...
0
votes
2answers
20 views

Browser address will not be displayed correctly in ui-route

I am using the following example : http://angular-ui.github.io/ui-router/sample/#/ Default Page URL in the example above : http://angular-ui.github.io/ui-router/sample/#/ But for me it is like ...
0
votes
3answers
25 views

Pass resolved objects into controllers defined by a string in angular-ui router

I have a set of objects that get resolved using :resolve I also have a controller that I define by passing it the name as a string but I need to pass in the resolved objects to it. I know it ...
0
votes
1answer
31 views

ui router does not put the content in the named ui-view

When I enter the route \#\projects\100\dates\2014-01-01 in the url and press return I get the "projects" state. I expected to trigger "projects.selected.dates" state. Why does the routing not ...
0
votes
1answer
30 views

angular ui router, back button does cause state change

I'm using angular in a rails app and have ui-router set up with several states. name: 'item' url: '/items' child states name: detail url: "/{item_id:[0-9]{1,4}}/detail" parent: item I'm ...
1
vote
2answers
42 views

Warn user before navigating to a different view

I would like to warn user and get a confirmation before the user navigates away from certain pages in my application, like composing a new message view. Which events can i capture and cancel/continue ...
0
votes
1answer
33 views

Angular UI Route- Changes the url with state

I am using Angular ui-router and defined my routes. But the problem is it changes the state but also changes the url which is not really the intention of using ui-router. I am not sure what I am doing ...