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

learn more… | top users | synonyms

1
vote
2answers
25 views

Angular, multiple controllers and routing with $routeProvider

I am trying to set up an angularjs application properly with separate controllers. Using $routeProvider, I want to configure the routing in order to see different views depending on the URL. So far ...
0
votes
1answer
20 views

cordova angularjs routing not working

I have an app created by cordova. So I use also angularjs. My problem is routing via angularjs $routeProvider works on Chrome Browser but not on my phone. var app = angular.module('appGenerator', ...
1
vote
1answer
24 views

Angular Ui-Router | Accesing a scope variable in a view from controller, but not working

I have this plunkr. I define two controllers: mainController and itemsController. I want to access to the scope variable items from a view, but I can't. To reproduce, you need to click first in the ...
0
votes
1answer
18 views

Angular-ui nested views in HTML5 mode get 404 not fount for template file

I have a problem with my app in HTML5 mode and nested URL, let me explain. This is an example routing file: angular.module('widgets').config(['$stateProvider', function($stateProvider) { ...
0
votes
1answer
11 views

Angular inline template 404 not found in drupal page

I'm serving an angular router in a drupal 7 page. The same example works fine in this fiddle: http://jsfiddle.net/laurencefass/Lsu8p124/. HTML <script type="text/ng-template" ...
0
votes
1answer
20 views

render angular route inside another page

I am novice to angularjs. i want to know that is there any way to render html template based on route inside div of other page. let me explain with an example. /Employee/Add is route which show a ...
0
votes
2answers
29 views

Modal Popups in AngularJS using angular-ui-router ($stateProvider) without updating the browser url

My criteria was: Open a modal from anywhere in my app Don't rewrite the url, leave it as is from before opening the modal When pressing the back button on the browser don't remember modal states and ...
0
votes
3answers
48 views

Angularjs + Laravel Stripe integration - Response goes to server and other details missing

i have an Angular Storefront app set up. I have a shopping cart functionality in place and a stripe "pay with card" button etc. pretty much looks like this: <form action="/#/order" ...
0
votes
1answer
24 views

using the routeprovider to get page part from full page instead off partial

I'm trying to create a website using AngularJS. It's possible to load the partials with the route provider using this code: myApp.config(function($routeProvider, $locationProvider) { ...
0
votes
2answers
35 views

How to make highchart clickable?

I am rendering a chart in html div. <div ng-click="changeRoute()" class="funcList"> <div high-chart chart_object="options"></div> </div> and in js I have - ...
3
votes
1answer
94 views

Setting view's name from decorator - Angular Ui Router

I'm defining my states in this way: var parentStates = [ {state : 'home', url: '/home', template: 'home.html'}, {state : 'about', url: '/about', template: 'about.html'}, {state : 'contact', url: ...
1
vote
2answers
30 views

How to reduce number of 'states' with same 'templateUrl' using Angular Ui-Router

Well, I need some help about a routing problem with Angular UI-Roter. Well, actually is not a problem, it's more about to reduce code. I have three child states: main.tab1.hello main.tab2.hello ...
1
vote
1answer
28 views

Define 'parent' value from param in Angular Ui-Router

Well, I have this situation: $stateProvider .state("main", { abtract: true, url:"/main", views: { "viewA": { templateUrl:"main.html" } } }) .state("other", { parent: ':foo', // Want ...
2
votes
3answers
49 views

Angular.js routing: Previous and Next pager

I'm new to Angular.js, so I'm sure there is a very simple solution to this, and I'm surprised there isn't a bunch of tutorials that cover this question. (There are plenty that cover pagination of a ...
1
vote
1answer
34 views

Data not binded after browser history back

I do have a webpage based on jHipster template and issue with browser back button. Let's say that I do have two pages Articles list (/articles/{id},{name}, category id, category name) Article ...
0
votes
1answer
12 views

ionic replace tabs in specific pages and perform task on the basis of that

I am making an app using ionic CLI command on mac or windows using below coomand ionic start app tabs Initially the welcome page has three tabs , I am working working for second tab which has list ...
0
votes
1answer
25 views

Dynamically injecting a specific factory based on route parameter fails for some reason

I want to dynamically inject a factory into my Angular controller based on the route parameter. This is my route configuration: $routeProvider .when("/tables/:table", { controller: ...
1
vote
2answers
42 views

AngularJS ng-click to go to view

Hi I have a button that I have a ng-click directive on that I just want to load a view. I've looked at some pages online, and I'm not able to figure out how to get the button to work. My button ...
1
vote
2answers
31 views

Issue with angular-ui-router and $stateProvider

So I have used ui-router in my web page. So far I have two views: list of users, and profile of the user. I created following states: .config(function($stateProvider, $urlRouterProvider) { // // ...
2
votes
2answers
36 views

Angular ui-routing and Asp.net Route not Working

I am fairly new to Angular, and I am trying to do an example with a parameter. The one without the parameter works fine, but the link with the parameter does not work. What am I doing wrong here? ...
0
votes
1answer
30 views

Asp.net MVC 4 Catch All Routing

I've been learning and doing examples with angular and Asp.Net MVC. I ran into an issue with a catch all route. After adding the catch all route, my browser kept crashing. If I remove the catch all, ...
0
votes
2answers
65 views

AngularJS Nested View

Edited on 10/05 I've been following this anjularjs and asp.net tutorial. I am trying to add some additional things on my own, but I am stuck. I am getting a JSon object from the server, and I am ...
0
votes
1answer
27 views

Separate nav from ng-view

I'm brand new to Angularjs and am trying to set up a new site but I'm confused as to the set up. I have a module and am using $route to successfully navigate but I'm lost as to what to do with my nav. ...
1
vote
0answers
43 views

navigate to another page without reloading the controller

I want to navigate to another page without reloading the controller: .state('app.viewcomments', { url: '/viewcomments/?new', views: { 'menuContent': { templateUrl: ...
0
votes
0answers
55 views

AngularJS & CodeIgniter Routing refresh page error

Evening, I'm currently practicing single page application using AngularJS and CodeIgniter, all the routing seems works perfectly when i clicked the navigation. And this is what it looks like before i ...
0
votes
1answer
28 views

AngularJs : two page routing won't work for changing views , status code : 404

As a newbie in Angular, i am working a tutorial : WEB DEVELOPMENT WITH_ANGULARJS AND BOOTSTRAP via "Packt". Below is the link in plunker to check the code implementation. At the moment i am working ...
2
votes
1answer
51 views

How to keep query string parameters in URL when accessing a route of an Angular 2 app?

I have an Angular 2 test app running the latest alpha (37). There are just three routes, that look like this: @RouteConfig([ { path: '/', component: Home, as: 'home' }, { path: '/errors', ...
0
votes
1answer
63 views

While trying to separate my angularjs code into manageable chunks i run into this error in the console:

When I run this project from the terminal like so cd to AppointmentScheduler node index.js I am now receiving the following erorr in the console Uncaught TypeError: undefined is not a ...
0
votes
1answer
25 views

“The Web server is configured to not list the contents of this directory” when loading the view Direclty (not when Naivgating from other page)

I'm extending an existing Angular-MVC.NET application. There are two features: transformations (exisitng) and embossing (the one I'm creating). Both of them use provider classes that call an ...
0
votes
0answers
27 views

Building a button that submits form without user hitting form page

So I have a guestcard page where a user fills out information on a form and clicks submit. Then they are redirected to a thankyou page where more suggestions pop up.. I created a submit button that ...
1
vote
1answer
13 views

Repeated $http requests in AngularJS Tab Navigation

I am working on an application which contains tabs. I have managed the tab navigation in the app by changing the content in ng-view upon tab change. But I have a page in those tabs which again ...
0
votes
0answers
31 views

Angularjs $stateChangeStart callback, all parameters except 'toState' are null

I have this code unsavedChangesManager.clearLocationHandler = $scope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) { ...
0
votes
1answer
16 views

Angular ngView request Error finding element, Partials not loading

I have the following directory structure: Public/ ......./js .........../angularAPP Views/ ....../index.html //main page with ngView ....../gu.html //test page to load partial I have routes ...
0
votes
1answer
17 views

Redirecting using $location upon successful login with Angular

I have an Angular service that handles logging in to my SPA. myApp.service('loginService', ['$rootScope', '$http', '$resource', '$cookies', '$location', function($rootScope, $http, $resource, ...
0
votes
1answer
34 views

Angular JS Routing with ng-click

I have problem with angular js that i am not able to solve, so i need your help... This is my code: angular.module("test2", ["ng.route"]) .config(function($routeProvider){ $routeProvider.when ...
0
votes
1answer
44 views

Angular ng-view is not replacing the view

I have below code as <!DOCTYPE html> <html ng-app="mainApp"> <head> <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> <script ...
0
votes
2answers
37 views

unable to call $stateProvider, twice to update the view (it is only working for the first time)

I have a search books page, in which when I click the search tab, depending on the search criteria, it will display the results in the adjacent block. But when I click it second time, it is not ...
0
votes
0answers
48 views

AngularJS - Dynamically Change Template URL based on rootScope's value in routeconfig

define([], function () { var routeResolver = function () { this.$get = function () { return this; }; this.routeConfig = function () { var ...
0
votes
1answer
88 views

AngularJS - Load different view for Controller if the route contains language prefix (Dynamic loading of view)

I am using Dan Wahlin's AngularJS tutorial as a seed project for angular. The code can be found here: https://github.com/DanWahlin/CustomerManager I am having trouble making it function for two ...
0
votes
3answers
28 views

$routeParams.value is undefined when passing to new controller

I'm trying to pass a value from one controller to another. Using $routeParams as the method for doing this. My main app references: var app = angular.module('acnApp', ['ngResource', 'ngRoute']) To ...
0
votes
0answers
65 views

CakePhp Routing Interfering with AngularJS Routes

Okay so the problem I am having deals with using CakePhp (v3) and AngularJS. I want to use CakePhp purely to host my JSON webservices. I have this working and the routes prefixed with API. The ...
0
votes
0answers
45 views

1.4 + New Router: Default components?

Using the new router and Angular 1.4, is it possible to define the default component for a particular viewport? For instance, my side and top navs are components and currently I have to define every ...
2
votes
0answers
33 views

Stop ng-view from deleting old content on route change

In my current app there are quite some complex calculations to do after $routeChangeSuccess before the new page is really fully shown. This causes a bit of "flickering" as the content changes position ...
0
votes
2answers
45 views

AngularJS routing, wrong link

I am trying to learn AngularJS routing and I am facing a little problem. I am working on a simple HTML file on my computer (which means the Url looks like file:///C:/Users ...) I don't know what ...
1
vote
1answer
97 views

AngularJS Scroll to Top when route changes, anchorScroll show in url?

i have two main problems with my angularJS Webapp. I want that the browser is scrolling to top when the route is chaning (or the page is changing) - currently its remebering the position - thats ...
0
votes
1answer
25 views

How to get a specific state with all resolved value with name of state in AngularJS UI router?

How to get a specific state with all resolved data with name of state in AngularJS UI router (it is not in a controller)? For example: $state.get('a name') should get me specific state but if this ...
0
votes
0answers
22 views

Getting html5Mode working on nginx/flask setup

I've been trying to get html5Mode to work correctly on angular, but haven't had any success. What I'm trying to do: I have an angular app (called DudeApp) that's only used in www.awesome.com/dude. ...
0
votes
1answer
51 views

Angularjs routing is not working

i have just started angularjs and came across the concept of routing i am doing a demo but its not working i don't know what I am doing wrong please help me out.I am doing it in MVC ASP.NET ...
3
votes
2answers
33 views

Displaying content in Angular without $scope

I am trying to display content using Angular, angular UI-Router, and without relying on $scope. In my mainController, I don't have any issues using directive likes ng-repeat. But I don't know how to ...
0
votes
0answers
41 views

$stateChangeStart is not firing in logout

I have defined Loginctrl in index page and called it in login.html. Once the user logged in ,he can view a menu where user can navigate to every module (based on the click, ctrler will be changed as ...