1
vote
1answer
8 views

Return interdependent async promises in $routeProvider resolve

Consider the code: var myApp = angular.module('myApp', []); The routes: myApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', { templateUrl: ...
1
vote
0answers
18 views

AngularJS: $route.current is undefined?

I was trying to use an ng-select to display 1 toolbar or another, i pointed this at my controller where I am doing $scope.toolbarType = $route.current.toolbarType; Problem is that the ...
0
votes
1answer
29 views

AngularJS - Need some combination of $routeChangeStart and $locationChangeStart

My problem is actually very similar to the one found here: AngularJs - cancel route change event In short, I'm using $routeChangeStart and trying to change the current route using $location. When I ...
1
vote
1answer
54 views

Security for an AngularJs + ServiceStack App

I have an application that have four modules in the front end, I'm trying to use as much as possible AngularJs in the front end I'm using an empty website asp.net project to host all the files and the ...
0
votes
1answer
22 views

Avoid ng-view getting “wiped” (updated) when $location.search updates GET params

So I have a map object instantiated using the leaflet library. The map instance is created in a separate template and routed in this manner:- var app = angular.module('myApp', ['ui', 'ngResource']); ...
0
votes
0answers
21 views

How to improve plnkr includes Angular UI Router and Angular UI Bootsrap Carousel [on hold]

http://plnkr.co/edit/uOW7tUQ2D5P22pBgLyoK extends Ben Schartz's fiddle on Angular UI Router, and loads a partial html containing the Angular UI Bootstrap Carousel demo. Apart from too many includes, ...
0
votes
2answers
12 views

AngularJS: dealing with root and sub applications in sub folders

I have two AngularJS applications: is the base application and runs at root / is a sub application that needs to be isolated for design reasons and runs in a sub folder, say /foo/ How can I route ...
1
vote
2answers
40 views

AngularJS partials with URLs in directives - best practice?

I quite like how angular-ui has created ui-routes, which provides named routes (among other things). Though likely a simple directive to write—a wrapper for ui-view—I am not sure if it is best ...
0
votes
1answer
16 views

AngularJS route renaming

I have an angular app that lives on mysite.com/angularapp and there is no need for a route provider. When I load the page, the URL changes to mysite.com/angularapp#/angularapp. I'd like the URL to not ...
0
votes
0answers
31 views

Configure AngularJS routes

I'm starting with AngularJS and I'm having some issues with routes. I configured my project for html5mode, I set my tag, and everything was ok. The problem comes when I try to use a bootstrap modal. ...
0
votes
0answers
28 views

flexible, file path based AngularJS routing

I am currently using a defined route in a n angular project. I define my module and configure the route like this: angular.module('website', []). config(function ($routeProvider) { ...
0
votes
1answer
14 views

Link route to directive? Or another way?

I have an unusual question. I have this old page that I want to convert to angular.js. http://transience.me/TD/ I have 5 pages worth of html loaded on one page and the only visible portion is the ...
0
votes
1answer
27 views

AngularJS: Refrain from changing the browser location URL to stop user from bookmarking an error page?

I have a form that I need to submit, if something goes wrong I would like to show an error page, I have a controller and view for this but I would like for the browser location textbox not to change ...
0
votes
0answers
28 views

Is there a way to dynamically load a template via an ajax/$http call to server?

I am using ui-router and $stateProvider instead of AngularJS' default $routeProvider. I need to dynamically set a template based on certain conditions. I need to make an $http call to the server to ...
0
votes
0answers
32 views

AngularJS routing failure

Please can someone tell me why the Views are not being inserted into the ng-view placeholder? I'm using the standard Visual Studio MVC project template with a HomeController and all my .cshtml files ...

1 2 3 4 5 7
15 30 50 per page