1
vote
1answer
13 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 ...
0
votes
1answer
14 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
15 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( ...
-5
votes
0answers
29 views

Worklight and routing (Angular, backbone etc) [on hold]

How can I use routing (Angular, backbone etc) with worklight app. When I try to go to url: index.html - it works fine but when I go to url index.html/#/test or index.html#/test Failed to load ...
0
votes
0answers
14 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
24 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
21 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
29 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
30 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
27 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
46 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, ...
0
votes
1answer
31 views

Can I pass multiple controllers in $routeProvider.when() in angularJS?

I tried searching for this on various threads, but I can't conclusively understand this. test.config(['$routeProvider', function($routeProvider){ $routeProvider .when('/', { ...
0
votes
1answer
22 views

Where is the controller placed using $routeProvider?

With ng-controller="myController" you know exactly what DOM element is associated with the controller, because it's put directly into your HTML: <div ng-controller="myController"> with ...
0
votes
0answers
33 views

angularjs html5 hash url

I am using server side google oauth in angular.js, Suppose my redirect url is localhost:8000/redirect. To remove # in angularjs I am using $locationProvider.html5Mode(true); But, when i visit the ...
0
votes
0answers
27 views

Google Maps Wont Work in AngularJS after routing

I am writing an app that has a Google Maps Embed. This Embed showed before I did some routing but now it wont work. Is this a common issue with AngularJS? If not, which I assume it isn't, can someone ...
-1
votes
1answer
36 views

Routing in AngularJS

I am new to angular and trying to implement Routing in one of my sample application,but its not working.Can somebody guide what i am doing wrong.Here's the link of my sample app. <!DOCTYPE ...
0
votes
1answer
17 views

Show form using custom directive - AngularJS

I have a button with ng-click function. When I click the button, it should show the form which is coded in a templateUrl using a custom directive. Which function should I use to get the screen ...
0
votes
1answer
41 views

angular $location,$route lifecycle events fired off twice when browser encodes url

using angular 1.2.10 UPDATED: issue is also occurring in latest legacy(1.2.21) and beta versions(1.3.0-beta.17 I provided a simplified example that demonstrates the issue I am encountering ...
0
votes
2answers
35 views

Angular Route & pagination in angularJS

I'm doing a pagination in angular-ui-bootstrap searchapp.config(function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); $routeProvider .when('/search?page', { ...
-1
votes
1answer
37 views

Strore urls in a separate file

I am working on Angular Routing and have URLs hardcoded directly in my javascript file. However, I would need to keep these URLs in a separate file, where should I keep it preferably? I can't map them ...
0
votes
1answer
40 views

AngularJS $routeChangeSuccess callback arguments

I'm new to AngularJS and am confused by the documentation regarding event listeners. The documentation lists the following for the $routeChangeSuccess event: $routeChangeSuccess Broadcasted after ...
0
votes
0answers
23 views

fetching the selected dropdown value in AngularJs

I have a dropdown menu which I coded using Bootstrap and I populate the data form the scope. How do I fetch the selected value from the controller whenever there is a change in the dropdown field. ...
0
votes
0answers
20 views

Google Maps is not displaying correctly

I have created an app that uses Google Maps, the map showed up before I did my routing. But after routing it wont display. Here is my code for the map. JS: (function() { mapController.$inject = ...
0
votes
0answers
25 views

Updating the data in the angularjs service and controllers

I have a angular service called 'NoteBooksService': app.factory('NoteBooksService', function() { var permanentStorage = window.localStorage; // Initializing the local storage if no data ...
-1
votes
1answer
30 views

Angular JS: how to change view in ng-view

I have navbar,sidebar and container. for each item in navbar have different sidebar. Ex: - If i click Nav A, it have sidebar A, B, C. - and if i click Nav B, it have sidebar D, E, F and for each ...
1
vote
0answers
30 views

getting an error : Argument 'ctrl' not defined in angular js

my index.html file has the following : <script src="scripts/controllers/form/DashboardCtrl.js" /> <script src="scripts/controllers/chart/morrisChartCtrl.js" /> my app.js file is as ...
0
votes
0answers
16 views

Is there a 'standard' way to get to the values in $$route?

I am currently using $route.current.$$route to get at some "non-standard" parameters I am attaching to route objects via the $routeProvider. Non-standard because they're not the three properties ...
0
votes
1answer
25 views

AngularJS Routing for Google Maps

Im having trouble getting my second view to show up in my app. What the app is supposed to do is list locations, when you click on a location it is supposed to route to a different view with a Google ...
-1
votes
1answer
26 views

POST 404 Not found.. Angular js

here i'm sending data through $http.post to data/user.php app.factory('loginService',function($http){ return{ login:function(data,scope){ var ...
0
votes
0answers
39 views

innerHTML removed when angularjs reloads the ngView

EDIT If I put the data into a global object, I can check the global object for content. If the global object already has data, kill the function, don't run another AJAX request and inject HTML from ...
0
votes
1answer
27 views

Dynamic route params in AngularJS

I am familiar with angularjs When I want to add my routing to my application I use $routeProvider In $routeProvider.when(), I define routes. How to define a route If I have a directory browser like ...
0
votes
0answers
20 views

Angular js Routing - change the url after navigating using ui-sref

In my main.html I have a button. It navigates to page2 <a class="ui orange massive button" ui-sref="page2">Go To Page2</a> and the url is ...
0
votes
2answers
22 views

calling ng-view controller method from outside controller?

HTML: <html ng-app="san"> <head> </head> <body ng-controller="sanctrl"> <div> AngularJS</div> <div ng-view=""> </div> <button type="button" ...
1
vote
1answer
27 views

AngularJS data specific to a route

What is the best way to pass specific data to a view controller? How I imagined it to work you would add an extra property to the object. e.g 'data' See example below. Config: .config(function ...
1
vote
1answer
56 views

AngularJS pretty-url not working on page refresh if base href is set to other than '/'

I am new to AngularJS. I am currently facing problem in writing pretty urls for my views.I have set $locationProvider.html5Mode(true); to remove # from the urls displayed in the address bar. ...
0
votes
0answers
52 views

How to stop changing routes in angular js

I am new to angular. I am trying to stop navigation to the index page if the user is already logged in. That means I use a cookie by applying the following code. app.run(['$rootScope', 'authService', ...
0
votes
0answers
14 views

How to construct the hyperlink to Angular views in a virtual directory web app?

To create those links, here is what I have in the links array: ... { link: { text: 'create', url: '/virtual_directory/#/visitor/create' } } ... in the html partial view: ...
0
votes
1answer
22 views

Can not prevent accessing to a specific route using $routeChangeStart

in angular js i have a routing function that should manage access to routes for admin and non admin users so i used to $routeChangeStart achieve that according to my logic if a user is logedin he can ...
0
votes
0answers
16 views

conflict with routing on route updata

on angular i have very strange error i have defined that method so i can manager access to routes basically what i am doing is if the user is logedin he goes to home page another than that he should ...
0
votes
1answer
34 views

AngularJS use data from one page to print a report in another

I have a domain object on which multiple procedures might be performed, each procedure might (or might not) have pre-configured reports to be generated. When viewing the details page of the domain ...
0
votes
1answer
62 views

AngularJS - Not working when adding ng-view

Here is my index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0 ...
1
vote
4answers
53 views

Redirecting to error page in Angularjs

I am new to AngularJs. I have a single page app with routes configured having a controller and a view. The view get loaded inside the <ng-view></ng-view> element of the index.html page. ...
0
votes
1answer
35 views

AngularJS routing

I have some accounts routes: .when('/accounts', { templateUrl: 'views/accounts.html', controller: 'AccountsCtrl' }) .when('/accounts/:accountId', { //templateUrl: ...
1
vote
2answers
69 views

SPA Refresh page using routing, AngularJS

I have SPA, when I'm using routing and want to refresh a page I get 404 because it Client side routing. How do I handle this? Here is my routing: app.config(function ($routeProvider, ...
0
votes
0answers
153 views

3 level nested views combining Tab Navigation & Side Menu Navigation with Ionic Frameworks

I see many examples out there combining the tab navigation & side menu navigation together but they are not nested, or example with nested views on side menu navigation only, in my case, I'd like ...
0
votes
1answer
36 views

Working with AngularJS $locationProvider in MVC5

I am trying to change the URL of the page if an $html callback is a success. Module: var app = angular.module('mymodule', ['ngRoute','ui.bootstrap']); app.config(function($locationProvider, ...
0
votes
2answers
47 views

ui.router changing state, but ui-view doesn't display anything?

Though the states are changing successfully, I can't get the ui-view to update: HTML <a ui-sref="promo.foo">Foo state</a> <a ui-sref="promo.bar">Bar state</a> <div ...
0
votes
0answers
25 views

dynamic router angularjs after login

I have my file app.js, it got my routes -> / login / home / signup But when I logging , would like to regenerate my routes deleting routes login / home / signup and generating only to /main ...
1
vote
1answer
24 views

how to integrate MenuController in SinglePage AngularJS application with home page

In my Angular application, i have this code in index.html: <!DOCTYPE html> <html data-ng-app="MyApp"> <head> <title>AngularJS</title> <!-- load css ... --> ...
-1
votes
1answer
18 views

How to get Previous path location in angularjs

From my current path location i want to check my previous path location, how it is possible in angularjs