0
votes
1answer
13 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
0answers
6 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
74 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
49 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
22 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
65 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
24 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
11 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
96 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 ...
0
votes
0answers
73 views

Using $routeProvider without specifying template and ng-view in AngularJS

I want to use angular's routing function only to bind views and controllers without indicating template and ng-view. This is what I have so far, and is working well. JavaScript ...
0
votes
0answers
23 views

can't connect json file

I tried to learn the Tutorial / step_08 at http://docs.angularjs.org/tutorial/step_08 But I could not connect the JSON to the Template and the main HTML page. I've included the code I wrote - I'd be ...

1 2 3 4 5 6
15 30 50 per page