1
vote
1answer
19 views

Relating routing and navigation styles with AngularJS

Say you have a basic router set up in Angular as follows: app.config(function($routeProvider) { $routeProvider.when('/', { redirectTo: "/news" }).when('/news', { templateUrl: ...
2
votes
1answer
27 views

Blank page using multiple views with UI-Router

I followed this article and this other I've tried to replicate what's on the wiki, without any luck. So far this is what I've done the folder structure: partial index index.html // inner view ...
0
votes
0answers
18 views

Angularjs initialize multiple controllers at startup?

i have a normal navbar with a menuController, this is the parent. then i have two other controllers a DashBoardController this is loaded on startup and a LoadDataController this is called if i click ...
0
votes
0answers
22 views

Disable angularJS routing for a specific url

I have a static sitemap.xml file which sits in the root of my server and needs to be served as is. Unfortunately, when I use the url www.mydomain.com/sitemap.xml it is rewritten by angularJS routing ...
-1
votes
0answers
15 views

Relaod the Controller In Angular Js

Select Options(Main controller) Rest of the page (other Controllers) When the user chooses the select options which is a button that will open a bootstrap modal...the user is routed ...
0
votes
1answer
10 views

Error:: [$injector:unpr] when trying to setup routing

Trying to setup a simple authentication for my angularjs app. When I debug the app.js in line 20 I receive this error: Error: [$injector:unpr] ...
1
vote
1answer
30 views

Why $routeChangeStart fires twice in AngularJS?

I have this function, when it's executed, it's fired twice. I see alert(ok) then alert(ok) I don't know why. $rootScope.$on( "$routeChangeStart", function(event, next, current) { if ( ...
0
votes
0answers
15 views

Angularjs routing by passing controller url [duplicate]

I am building a large single page application that consist of many controller js files, Services js files, third party libraries, css files As I am using angular js route for loading controller for ...
1
vote
1answer
41 views

Routing with angularjs in Mvc application

I have been continously trying to implement routing in Angularjs with Mvc 4.0 project but I am not able to do it. I have created a empty MVC 4.0 project and added a controller "HomeController". Then ...
0
votes
0answers
22 views

Need to resolve MVC and Angular Routes

I have a typical MVC route define routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = ...
0
votes
0answers
29 views

Routing with AngularJs

How to configure the route in AngularJS when the url contains query parameters. I have to write a config for handling route with the url /states?statename=kar. I wrote the config as ...
1
vote
1answer
44 views

Starting with single page apps

I am a beginner in Angularjs and I have downloaded the template "Angular Start" for angularjs. It has come with some inbuilt files . Like homecontroller, AppjsFolder etc. I wonder how I can start ...
1
vote
1answer
30 views

How to prevent Angular from turning URL hash into a path

I have an angular app with a number of links. Clicking each link displays a particular set of data. I would like each link to set a hash in the URL, like http://foo.com/bar#item1, and I'd also like to ...
2
votes
2answers
151 views

$routeProvider not firing Controller

I have a situation where the Angular $routeProvider appears to not fire controller actions on route changes. The routes are super simple urls: window.app = angular.module('app', ['ngRoute', ...
0
votes
1answer
23 views

Properties disapear after getting the object form the cookiestore

I defined a $routeProvider that adds access to the route: $routeProvider.when('/tracks/:trackTitle/:mediaTitle', { templateUrl: 'views/track-detail.html', controller: 'MediaCtrl', access: ...
0
votes
1answer
42 views

Angular templating with Dustjs

I'm a beginner in the AngularJS environmnent. In the interest of my company, I would like to combine the power of the Angular framework with the Dustjs templating engine. The problem is : Dustsjs is ...
0
votes
1answer
24 views

Angular JS routing doesn't work for IE 6

I am currently studying the ability of using AngularJS ( v1.2.16 ) for a project, which must be compatible with our good oldies IE 6+. I am testing the angular tutorial with these different ...
0
votes
0answers
20 views

How do I debug Javascript in an AngularJS partial?

I am using the Routing and Multiple Views feature of AngularJS but I don't see the HTML partial file (or the embedded Javascript) in Chrome's "Sources" tab of the Developer Tools. In my index.html ...
0
votes
1answer
23 views

Angular safe Authentication with route

I'm wondering if there is a way to implement authentication and login with angular's route provider. My thought is, that the client can just edit the js-code before the page is loaded and therefore he ...
1
vote
2answers
44 views

AngularJS rendering different template inside ng-repeat using ng-view

I would like to apologize that I couldn't provide any code snippet regarding this question, I am a newbie about AngularJS. <div ng-repeat="item in list" ng-view></div> Using the code ...
0
votes
1answer
23 views

Loading the partial file after fetching the data from ajax call

I am loading a partial file which fetches the data using a ajax call. The issue is the partial file gets loaded immediately once the link is clicked on the browser but the data will be populated after ...
1
vote
1answer
20 views

Get a no matches [DELETE] error by using Anguarjs with Rails

Creating and viewing objects go well. But when I attempt to add a function of DELETE. It responses a error: Started DELETE "/api/items" for 127.0.0.1 at 2014-05-21 01:15:32 +1000 ...
0
votes
2answers
52 views

ngRoute not working

My scripts are : index.html <!DOCTYPE html> <html ng-app="myApp"> <head> <title>My Application</title> </head> <body> <div ...
1
vote
1answer
39 views

Angular JS deep linking will refresh view

I'm going to try my best to explain this problem. I am also new to Angular so bear with me. I have two routes that use the same template... ExampleApp.config(['$routeProvider', ...
0
votes
1answer
29 views

Angularjs initialize $on in other controller?

i have a normal navbar with a menuController, this is the parent. in this menuController is a method 'sendData()' with a broadcast method and a location call "$location.path('/page2')" which ...
1
vote
1answer
32 views

AngularJS: Highly Dynamic Routing

Hi, I am currently looking to implement something like this (AngularJS): $routeProvider .when('/root/:controllerName/blah/:blahId/blah/:blah', { templateUrl: ...
3
votes
2answers
30 views

specifying AngularJS controller: benefits using ngController vs. $routeProvider

There are two ways (AFAIK) to associate a controller with a view template/partial: the route specified in $routeProvider and the ngController directive. Especially (but not exclusively) for simple ...
1
vote
0answers
57 views

How to use ASP.NET MVC and AngularJS routing?

I’m working on a new ASP.NET MVC and AngularJS application that is intended to be a collection of SPAs. I’m using the MVC areas concept to separate each individual SPA, and then I’m using AngularJS ...
1
vote
2answers
29 views

angularjs, use a function in the routing as the templateUrl

It's possible to use a function as the templateUrl. The official documentation for $routeProvider states: templateUrl – {string=|function()=} $routeProvider official documentation In ...
1
vote
0answers
18 views

Angular mangles weird URLs

Our legacy website had URLs that looked like ouroldsite.com/Script?key=val1=val2 These are now 301 redirected to: ournewsite.com/#!/Script?key=val1=val2 When angular recieves these requests, it ...
0
votes
1answer
22 views

Loading the partial files after the http call inside the controller

I am having a controller and a partial file. The partial file tries to access a variable which was set by the controller. But the issue here is that the controller populates the scope object with the ...
0
votes
1answer
44 views

Passing javascript variables from controller to partial file in AngularJs

I am new to AngularJs. I have put a url value in the scope variable inside a controller. This value should be used in the partial file corresponding to the controller inside a javascript function. How ...
0
votes
0answers
39 views

Incorporating a Angular SPA into an existing web-site. Routing problems

So as a proof of concept, I built a Angular SPA to demonstrate to the rest of my team its potential. They were impressed and have now asked me that I incorporate it into our existing web-site under a ...
0
votes
1answer
30 views

Angular Routing isn't being intercepted

I have the following in my app.js file: // Declare app level module which depends on filters, and services var APP = angular.module('DiagsDashboard', ['ngRoute', 'DiagsDashboard.filters', ...
0
votes
1answer
56 views

Couldn't navigate from one page to another

I am new to angularjs...i am trying to navigate from login page to next page using router functionality....My login page is as follows <body> <div id='content' ng-app='myApp' ...
0
votes
0answers
31 views

Angular with Rails - Angular template will not load properly

i am learning how to use angularjs routing and templating, and i have come across a problem. I have added the gem in Gemfile, added //= require angular-rails-templates in application.js, and added the ...
0
votes
1answer
41 views

angular routing and templating issue

i am learning how to use angularjs routing and templating, and i have come across a problem. I have added the gem in Gemfile, added //= require angular-rails-templates in application.js, and added the ...
0
votes
1answer
32 views

Offline routing wih angular maks jQuery say operation is insecure

I'm trying to ue Angularjs in my offline application. All files get loaded directly, without a webserver (so from file://[PATH]). This works the first time, but then angular appends #/ to the back of ...
0
votes
1answer
102 views

AngularJS routed page refresh never loads

I'm trying to use AngularJS in a salesforce local hybrid android app, and while a simple test of the angular code works in firefox, when I run it in the Android emulator it loads for a fraction of a ...
0
votes
1answer
41 views

Set radio button state based on a value received from REST in AngularJS

What I would like to achieve is set a radio button's state according to the data retrieved from the server in AngularJS. What makes this more special is that I need to show a div based on a condition ...
0
votes
2answers
17 views

Pass parameters to controller in defined route?

Say I have an app defined as such: angular.module('myApp', ['myControllers']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', { templateUrl: ...
0
votes
4answers
60 views

angularjs maintain the scope variable across routes

How do I maintain the model across routes. for eg I have a list of profiles loaded onto the home page. The home page also contains a "load more" action to load more profiles, basically pushing data to ...
0
votes
2answers
67 views

bootstrap carousel does not work correctly using partial file

I am new to bootstrap and AngularJs. I am using bootstrap and Angular Js for my current application. When I use the bootstrap carousel directly inside the index page, the carousel's slide link are ...
1
vote
3answers
39 views

Angularjs route executes twice with particular querystring

I'm developing a SPA AngularJs application, that has to deal with some particular legacy URL's. I am using the basic $routeProvider that works fine, with one exception: when i invoke a special url ...
0
votes
1answer
18 views

Should resolved objects be tested in routes unit test in Angular?

Currently in routes unit test I'm testing if appropriate controller and template are called, like seen here. Also, in some routes I have resolved object. I can access them like: ...
0
votes
3answers
40 views

Dynamic routes for angularjs

I want to have a routes that would look like such: $routeProvider.when('/trial/:extention/:id', {templateUrl: 'partials/quran.html', controller: 'QCtrl'}); $routeProvider.otherwise({redirectTo: ...
0
votes
1answer
100 views

angularJS template url is not loading automatically

It's loading when I type a char in input type="search". Page is calling 'ajax call' twice. request is fire twice on 'single click' or 'onPageload' index.Html This is my html file which has a ...
0
votes
1answer
35 views

Resolve in router is not updating scope in time

Hello there, I have issue with manipulating with scope variables (with resolve in router) before angular view content is renderer. I am using AngularJS 1.2.16 I have view, where is DIV displayed ...
0
votes
1answer
41 views

AngularJS: multiple edit forms routing?

I have a listing of Requests each with a Request_Type_Id which maps to a feeder list (which could grow as the application evolves). For example, we might have (id, request_type) 1 - Sales Information, ...
1
vote
2answers
40 views

AngularJS: Recommendation on rendering different view when HTTP 404

What I am doing I am trying to create a service which loads the user budgets for current month. The code looks like $scope.thisMonthBudgetSummary = function () { console.log('retrieving ...