0
votes
0answers
14 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
23 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 ...
0
votes
1answer
33 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
13 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
29 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
37 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
26 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
39 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 ...
0
votes
0answers
35 views

Some <A HREF> work others do not in Anguar JS 1.2.23 [closed]

I have just updated my single-page application from Angular 1.08 to 1.2.23 and some HREFs have stopped triggering the change in page content. I can see the ng-click taking affect but the new content ...
0
votes
1answer
29 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
38 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
18 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
32 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
18 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
17 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
39 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
38 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 ...
0
votes
1answer
154 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
20 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
32 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
44 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
312 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
40 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
50 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
131 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
57 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
60 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
55 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
28 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
29 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
0answers
22 views

Get predicted $location.path for any url in AngularJS

In my Angular application I have a bookmark like feature where I want to persist application routes. I want the persisted data to be still valid even when the application url changes, so I thought ...
-1
votes
1answer
152 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
30 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
22 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
37 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
48 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
44 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 ...
1
vote
2answers
32 views

AngularJS route does nothing

I am a newbie, trying to understand routing, I read the documentation and i injected ngRoute module, but still when i am trying to click on Employee Name its not showing any thing, i have wasted lot ...
-1
votes
0answers
23 views

Change SPA address in Google

I first created single page application website with Angular using the default hash sign in URLs (e.g. URL v1 http://example.com/#/main). Then I changed to hashbangs for making my SPA crawlable (e.g. ...
0
votes
0answers
47 views

template instead of templateUrl in angularjs and Asp.Net MVC?

I am using AngularJs in Asp.Net mvc 4. I would like to use the template in $routeProvider instead of templateUrl I wan to use this one $routeProvider.when('/url', { template: ...
1
vote
2answers
54 views

Crawling a website that uses angular routes

I have a personal website that I use for some of my motorbike racing. I created it recently using node and angular. I decided to try angular routes for my page navigation etc. I think it worked well ...
-1
votes
1answer
48 views

AngularJS Trying to use ng-click with ng-switch but ng-switch is not switching my divs

AngNoob here. I have some global navigation that uses the routeProvider to swap out external html pages inside the view. Within the view i set up a list type sub navigation (created with ng-repeat) ...
0
votes
1answer
22 views

controller does not recognize routeParams variable passed from routeProvider

<script> var app= angular.module('myApp', ['ngRoute', 'ngResource']); app.factory('Greeter', ['$resource',function($resource){ return $resource( ...
0
votes
0answers
24 views

Is it possible to transition between named views with ui-sref in the same template file?

Here's my code // DEMO .state('demo', { abstract: true, url: '/demo', templateUrl: 'views/templates/demo.html', controller: 'MainCtrl' }) // PAGE ONE .state('demo.one', ...
-3
votes
0answers
26 views

how to pass json object between different controllers in angular js? [duplicate]

Like in asp.net mvc, we use ViewBag, ViewData, to pass in objects between different views. How do i pass in a Json Object between 2 different controllers using angular js?
1
vote
1answer
27 views

Angular js api url call not working

app.controller('Ctrl', function ($scope, $http) { $http({method: 'GET', url: "/api/v1/coupons-dunia/coupons-by-website?websiteId=1"}).success(function(data) { $scope.onlinedata = ...
0
votes
1answer
46 views

Angular routing with bootstrap carousel issue

I currently have an issue which im unsure of how to solve or if it even can be solved. I am currently using Angular JS and Bootstrap 3.0. Within my Angular project I am using routing but on my page ...
0
votes
0answers
36 views

Routing in AngularJS is not working. '.config' keyword is not identified

I have used routing in AngularJS in one of the applications. It is working fine and .config is highlighted by webstorm as shown below. It is able to identify the command/keyword. It is shown as 'Non ...
0
votes
1answer
43 views

angularjs pretty url is not working

My problem is url is not working without # . Here is my code : angular.module('Hiren', ['ngRoute']) .config(function ($routeProvider, $locationProvider) { $routeProvider .when('/', { ...
0
votes
1answer
76 views

Angular route won't load templateUrl

I can't seem to load the templateUrl using the angularjs routing. Using django and angularjs. What I do is go to 127.0.0.1:8000/phones/, it redirects me to 127.0.0.1:8000/phones/#/ Then, I refresh, ...