0
votes
1answer
12 views

Otherwise redirectTo '/not-found' while keeping the previous URI

I've added a 404 page to my router. So here is my code: app.js $routeProvider.otherwise({ redirectTo: '/not-found' }); error.js app.error = angular.module('CRM.Error', ['ngRoute', ...
0
votes
1answer
14 views

Taking actions on inactive page in angular

I'm new to AngularJS, coming from a jQuery background. At the moment I take my first steps and create some sample pages with Angular. Now I wanted to achieve some thing like this: Think of an app ...
0
votes
1answer
21 views

Why controller doesn't respond on route update?

I would like preserve instance of controller without reloading. I set reloadOnSearch to false and I manage route change in my controller. Here is the code. This is example of my link <a ...
0
votes
1answer
19 views

AngularJS wrapper for extjs4 application - good design?

I am loading an extjs4(.2.1) application within a div in JSP page. In my JSP i display various links based on what the user is allowed to do. On click of each link the page refreshes and I set some ...
0
votes
0answers
7 views

IIS angularjs routing - access application from URL

Presently I use the following url style with .html extension to start the angular app. http://localhost:7370/dashboard.html or http://www.subdomain.website.com/dashboard.html Is there a way to run ...
1
vote
1answer
30 views

AngularJS routing based on scroll

I'm using Angular for a project, and was wondering if it is possible to use Angular's routing functionality (or that of a 3rd party library such as ui-router) to control navigation in a scenario as ...
0
votes
0answers
25 views

What is the proper way to use $location.path()?

I'm trying to determine the best way to get $location.path() to work for me. In the code below, in the $rootScope.$on('unauthenticated') function I had $location.path('/login') getting called but the ...
0
votes
1answer
22 views

Routing to controller from a separate module in Angular.js

I am trying to modularize a feature I am developing in an existing angular.js application. I have created namespaced modules for all the different sections of this feature, which we will call feature ...
0
votes
0answers
12 views

Angularjs Reload partial view gives 'object not found' error in official docs example

Following the example in official docs, I find that the partial view rendered doesn't work when one reloads the page. The plunker link is here. If you launch the plunker preview on a seperate ...
0
votes
3answers
33 views

Multiple optional parameters in Angular.js

I typically use querystrings for filtering results, eg: URL: /Events/List?type=art&city=miami&life=present I can put them in any order and get the same results, eg: URL: ...
0
votes
1answer
60 views

How can I persist sibling ui-views when changing state?

I have 2 ui-view directives in my application. One contains subnavigation and the other is the actual page content. My subnavigation is a tree structure, and when you click on an end node (or a leaf) ...
-1
votes
1answer
55 views

Angularjs Routing Throw Exception

I am trying to create my first Angular Application. I am having an issue with routing the page. The page was working perfectly fine until I start doing the routing part. I am getting an exception. ...
1
vote
0answers
31 views

Dynamically generate templateURL

I am trying to generate templatURL dynamically. I am using angularjs ui-routing my routing function is: }).state('error',{ url: '/:locale/office-profile/', templateUrl: function(obj) { ...
0
votes
1answer
18 views

How to get Angular ui-router to route on page load

I am trying to set up angular routing. When I navigate to a route using <a ui-sref="classification.sequences.index"> it gets routed to the correct location,changes the url to ...
0
votes
1answer
52 views

How can I make ASP MVC localization routes without interfering with AngularJS routes

I'm starting a project with ASP MVC and AngularJS, I would like to have ASP MVC to handle the localization from within the URL as something like this: http://localhost:4416/en/#/contact or this ...
0
votes
0answers
33 views

Why is the angular controller never called?

Everything loads fine in the inspector and I do not see console errors. But I am expecting info.html partial to load. It is not using any data at this point from the scope. But the code form the ...
1
vote
1answer
44 views

Same controller, different template, one new variable

I have a page where I display data (www.mypage.com/:gameId). To print this data I want to show a print friendly page (www.mypage.com/:gameId/print). Both of the pages are identical in data output but ...
1
vote
1answer
21 views

how to redirect $routeProvider.otherwise() keeping the given query parameters

Let say I go to /unknown-route?a=hello&b=world and $routeProvider doesnt recognize it and redirect to the otherwise route: otherwise({ redirectTo: '/default-route' }); Is it possible to pass ...
1
vote
1answer
35 views

Simple AngularJS Program is Blank in Browser

I'm working on learning some Angular for an application I'm building. After going through some tutorials, I had a basic program working which had two views and some routing to flip between them. I'm ...
0
votes
1answer
65 views

KendoUI not working with AngularJS Routing

I have setup the following routes in app.js var loginApp = angular.module('loginApp', ['ui.router']); loginApp.config(function($stateProvider, $urlRouterProvider) { ...
0
votes
1answer
31 views

Changing route using an HTML form action in Chrome (AngularJS)

I have an angularJS application which shares data between 3 controllers using a service. I route between the views using a button within an html form. The action attribute of the form is set to the ...
0
votes
1answer
43 views

search results on the previous page should not be refreshed when clicked on back button

Am using Ui-router to navigate the pages in Angularjs,when I searched for some results in the first view and clicking on a link in that view it will navigate to the second view i.e., Details ...
1
vote
1answer
37 views

urls and angularjs with mvc

I have a problem with my angular routes when entering the URL directly in the URL bar of the browser. What happens is this. When my app loads up I call a single MVC controller which loads a MVC view ...
0
votes
1answer
107 views

Resource interpreted as Script but transferred with MIME type text/html when inject angular-route.map

What could be the cause of error in dependency injection of ngRouteProvider NOTE: $location has a dependency on ngRoute, thats why I need to inject it, while, I am not really using it, but $location ...
0
votes
1answer
54 views

using angularjs router instead spring mvc router

im using spring mvc with angular js. i would like to know if there's a way to use angularjs router instead using spring mvc router? //Java @RequestMapping(value = "cases", method = ...
0
votes
1answer
20 views

AngularJS view not rendered with data received in a service using routeparams

I am trying to show single trail information on trailDetails.html when I click this link on my searchTrails.html. And there is nothing on trailDetails.html. But if I move codes in getDataService.js to ...
3
votes
2answers
48 views

Change route path without reloading controller and template in angularjs route

Hi all angularjs developer, I have followed the ng document (link) .I have searched since many times but i did not find any solution that will help me properly. I need to change route without ...
0
votes
0answers
19 views

relative paths and routes inside a directive

Starting angularjs and trying to integrate it into our next mvc project. I've hit a bit of a snag with routes. Looked at the documenation on routeprovider but it doesn't really seem to solve my ...
0
votes
1answer
23 views

ui.router named views not working

I am trying to define nested state with the named views. But it is not working, please see the below code and plunk. What could be the problem with this. .config(function($stateProvider, ...
1
vote
2answers
46 views

Angular-route issues - Route not executing

I've been following a set of tutorials from Scott Allen. I have tried to emulate what he does down to the bone I believe however my angular route is just not being executed. I have a view called ...
1
vote
0answers
41 views

Angularjs routing fails on server when minification is turned on

I am currently building a Angularjs singel page application and i have run in to some odd error with my routing. I have a nav bar with multiple options and all but one of them work correct. This is ...
1
vote
1answer
186 views

AngularJS: weird controller call with module organization

I've made a module code structure, here is my index.html: <!doctype html> <html> <head> <!-- AngularJS --> <script ...
0
votes
3answers
25 views

Unable to display angularjs page data after route change.

I am relatively new to angularjs and seems like I am missing something obvious here. I tried to go through documentation and tutorials, but unable to find any solution to my problem. I have a REST ...
0
votes
1answer
40 views

Angular service reset when changing page through Angular routes

I have multi page signUp form , I need to persist data until last step , so that user can jump to any step back and edit. I am using service "User" as singleton object for all six steps. ...
1
vote
0answers
48 views

Route with Arguments and Resolve Loads Angular More Than Once

This is working code from this question that receives and renders the data. var app = angular.module('app', ['ngResource', 'ngRoute']); app.config(function($routeProvider, $locationProvider) { ...
1
vote
1answer
330 views

UI-Router: sequential resolve of parent and child states

I have two abstract states parent and parent.child, and an activateable state parent.child.grand. I want parent to be promise resolved before parent.child.grand gets its resolves executed. Why? ...
0
votes
2answers
46 views

Angular JS UI Routing

I am trying to use angularJS UI routing. I have three webpages, clients can access the first page through some link but if the url has a token attached to it I am doing a $state.go('second-page') in ...
0
votes
2answers
59 views

Using ngRoute and getting 404 Error

All, I was reading The tutorial of $route. and try to get the example work against my IIS. When I click the link in the page. The address of chrome will be changed like below. And when I tried to ...
3
votes
4answers
137 views

Getting Jasmine to Work with Angular JS

I am trying to get Jasmine to work with my Angular JS Project But I always keep getting the following error. I am trying to get it to run a very very simple test. Also I have setup the angular js ...
2
votes
2answers
94 views

AngularJS UI Router $state reload child state only

I am using UI router for tabs of a main menu as well as for links within one of the states (users). The users state has a list of users and when a user is clicked, I want to reload the child state ...
1
vote
2answers
84 views

Angular's “controllerAs” not working in routeProvider

I am trying to use the controllerAs property on a $routeProvider route without any success. Here is the sample code: var app = angular.module('app', ['ngRoute']); app.config(['$routeProvider', ...
0
votes
1answer
61 views

AngularJS crashes when I define a route with two parameters in it

As per the title, as soon as I add the route: .when('/cluster/:clusterName/node/:nodeId', { templateUrl: 'partials/node/view.html', controller: nodeViewController }) and try to ...
0
votes
1answer
33 views

Angular resolve user on startup

Hoping this is an easy one! I want to make sure the user accessing the application is resolved before showing any screens or calling any subsequent services. I can resolve the user through making a ...
0
votes
1answer
33 views

Angular routing was ignored

I have module Board with routes: @Board.config ($routeProvider, $httpProvider,$locationProvider)-> # Code $routeProvider .when '/boards/:board_id/topics/new', { templateUrl: (p) -> ...
-1
votes
1answer
163 views

Browser's back buttton doesn't work without refresh in Angular app

I have an Angular app, which has several ng-controllers and several templates. And here is a snippet of my routing: when('/claims', { templateUrl: '/angular_templates/index', controller: ...
0
votes
0answers
31 views

Store the value from url params using angular js

var x = $location.search('filterBy=')[1]; $http({method: 'GET',url: '/asasa/sddd?websiteId='+x}).success(function(data) { $scope.onlinedata = data.coupons; ...
0
votes
0answers
24 views

Executing php code issue caused by angular routing

This php code works standalone but if it gets injected via angular routing the if statement does not accept the submit from the input: The PHP Code: <?php if (isset($_POST['submit'])) { echo ...
1
vote
0answers
44 views

How to structure AngularJS and PaperJS project

The idea is to make use of Angular in a simple canvas game development. In theory the project should benefit from being more systematic, manageable and scalable. This is not a sprite/tile/collision ...
0
votes
2answers
59 views

AngularJS html5Mode fallback in IE. Express server needs to know route

I'm using html5Mode=true with AngularJS routing. Works fine. When I access the site with IE, Angular routing falls back to Hashbang URI's like http://example.com/#!/route-name. That's all fine. Except ...
0
votes
2answers
62 views

How to stop execution of Controller with $routeChangeStart in angularjs

I am setting session on login and after that I am preventing LoginCtrl to be called as it is resetting session. I have a setup of routes where if any undefined route is called it takes to /login But ...