The built-in routing object in AngularJS, which can map the browser URL to a defined route.

learn more… | top users | synonyms

1
vote
1answer
21 views

AngularJS Dynamic loading a controller

I read a lot about lazzy loading, but I am facing a problem when using $routeProvider. My goal is to load a javascript file which contains a controller and add a route to this controller which has ...
1
vote
0answers
11 views

Angularjs Routing behaves strange when using tabset directive from ui-bootstrap

I've been trying to solve a strange behaviour. Whenever I use the tabset directive from ui-bootstrap in one of my ui-router templates, I am unable to navigate away from that particular state. The ...
0
votes
1answer
18 views

how does angular's routing rewrite the address bar when I hit a page directly?

So I am trying to understand angular's routing/address rewriting behaviour logic when I hit a page's address directly i.e. go to index.html instread of just'/'. (You might question why I am doing ...
0
votes
1answer
10 views

$stateProvider not loading pages as expected

I am trying to use $stateProvider for my url routing. I thought that if I use $stateProvider, then I don't need to use $routeProvider. Is this correct? I was able to get my url routing to work with ...
0
votes
0answers
18 views

Different base url for page routing and templates/partials/RESTful API

My Angular app is splitted into several subapps. I'm working with laravel which is also responsible for the routing between the subapps. So there are the following urls handled by laravel: ModuleX: ...
0
votes
2answers
25 views

AngularJS routing for dynamic urls, how?

I'm trying to understand how can i configure my angularJS routing given the following case: We have a search page where we display the search results based on tags provided (1..n tags). we would like ...
4
votes
1answer
77 views

AngularJS and Handling 404 Errors

What is the best way to handle 404 errors with AngularJS? A little background: I'm building an Angular app and have opted to use $locationProvider.html5Mode(true); because I want the URLs to ...
0
votes
2answers
50 views

How to add dinamic prefix to AngularJS routes

What i what is make localized urls like: http://mysite.com/eng/somepath http://mysite.com/ger/somepath Let pretend that we always know user lang. angular.module('website', []) ...
0
votes
1answer
26 views

Can angularjs routes have optional parameter values?

Can I set a route with optional params (same template and controller, but some params should be ignored if they don't exist? So instead of writing the following two rules, have only one? ...
1
vote
1answer
53 views

AngularJS routes with parameters in path not loading in HTML5 mode when going directly to URLs

I have a few routes specified: app.config(["$routeProvider", "$locationProvider", function($routeProvider, $locationProvider) { $routeProvider. when("/", { templateUrl: ...
0
votes
2answers
66 views

AngularJS Uncaught ReferenceError: controller is not defined from module

I have the following code; var app = angular. module("myApp",[]). config(function($routeProvider, $locationProvider) { $routeProvider.when('/someplace', { ...
0
votes
1answer
25 views

How to use current url params in angular controller

I have a dynamic value params in url and I want to get it and use in controller when onload But I have no idea how to deal with $route.current.params Let say I have this route provider ...
0
votes
0answers
10 views

Is it possible to define a resolve object and make it available in all routes?

I have a users with access to different parts of the app. What I'm doing now is adding a resolve to every $routeProvider.when resolve : { adminUser: ...
0
votes
0answers
12 views

$routeProvider is not working on my App

Hi guys i want to ask you if u can help me resolve this, my code is hosted and when i access to the page that sould be to the index.html my $routeProvider is not working todoListApp.config(function ...
0
votes
1answer
97 views

Angularjs - one page application with stored JSON data for offline use

I'm looking into using AngularJS for an upcoming project but I am having difficulty getting my head around the views/routing, specifically for an app with only one page. The page consists of a form ...

1 2 3 4 5 6
15 30 50 per page