0
votes
1answer
26 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
27 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
26 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
36 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
26 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
20 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
31 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
24 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
33 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
34 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
34 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
39 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
21 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
28 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
24 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
36 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
26 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
16 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
20 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
26 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
52 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
50 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
20 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
32 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
59 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
46 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
34 views

AngularJS routing

I have some accounts routes: .when('/accounts', { templateUrl: 'views/accounts.html', controller: 'AccountsCtrl' }) .when('/accounts/:accountId', { //templateUrl: ...
1
vote
2answers
58 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
126 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
0
votes
1answer
65 views

Angularjs re-render the whole page [ionic]

I have an angular method deleteConfirm: $scope.deleteConfirm = function(pageIndex) { var confirmPopup = $ionicPopup.confirm({ title: 'Delete Page', template: 'Are you sure you ...
0
votes
1answer
61 views

how to display dynamic content in a single page using angularjs

I am new to AngularJs and for stackoverflow too,hope will get a solution for my problem here. I`m trying to display the details of an experiment(in the same page)based on the name of the experiment ...
1
vote
1answer
55 views

Can not push an interceptor

In angular js i have made a service that should authenticate user simply it stores a token and send it with every request so i used interceptors. her is the code of the interceptor. ...
0
votes
1answer
27 views

Hash removed from default routing in AngularJS

I'm writing an angular app where I need to accept an URL with a fragment hash (OAuth 2.0). Making it short it looks like this. http://example.com/#access_token=918f4d6e90b25b13ef66a When this URI is ...
0
votes
1answer
40 views

Angular routing with ngRoute doesn't work

I'm new to Angular and I'm trying to create a Single Page application with 2 views. When I load the app is always shows me the first one of the 2 views regardless of what route I type in the browser. ...
0
votes
2answers
40 views

Previous Page in Angular.js

i am working in AngularJs and i have a problem. When the user push the login button, the page go back to the previous page, but i only want go back if one of the routeprovider page and go to "/" ...
1
vote
1answer
67 views

AngularJS routing doesn't work in Safari Extension

I have a very simple AngularJS app that I'm using to test the creation of a new Safari Extension. When I run it from localhost in a regular Safari page all works, but when I run the same code in the ...