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

learn more… | top users | synonyms

0
votes
0answers
18 views

angularjs ui-router - Redirect to dynamic state

I have a link called Rounds. When I click on it, I get a nav that displays a list of rounds (First Round, Second Round, ...). Rounds are collected from a dynamic database (currently from a JSON file). ...
0
votes
1answer
22 views

Laravel adds “!#” to the root URL when clicking a Link with #

I'm trying to make my AngularJS routes work with Laravel 5.4. But I have a problem. In my Welcome.blade.php file I have these links : <ul class="nav navbar-nav navbar-right"> <li&...
0
votes
0answers
27 views

Inject service in app.config $routeProvider

I want to inject a service into app.config, so that i can set root url accordingly. Note: I don't want to redirect to '/sign-in' location. myApp.config(['$routeProvider','DBstore', function($...
0
votes
1answer
38 views

AngularJS Error [$injector:modulerr]

Sorry for big piece of code but I've got a problem with my AngularJS module, created in accordance with these lessons. I want my angular module to work with ASP.NET MVC, but I can't even run it. (...
0
votes
0answers
26 views

Nested States & Nested View not working in ui router angular js

I have a problem. I use 2 controller in 1 navigation like this thread click button go to answer Thread and Answer different controller. So, I use this in table thread (go to view answer) <...
0
votes
0answers
18 views

Page Reload Fail When Using Html5 Mode True in Angular UI Router

I have a problem, I did remove #! in my URL with $locationProvider.html5Mode(true);. I checked my page is good if I switch in another page. But, if I reload my page like http://example-page/thread or ...
0
votes
2answers
44 views

Give URL with ID in Angular UI Router

I have a problem, when I edited data, my url not showing id example : /answer/1 or /answer/2 or /answer/3 etc. Im confused because Im using UI ROUTER I'm a beginner use UI ROUTER angularjs. Can you ...
1
vote
3answers
27 views

How to load a function when a controller is called in angularjs

I have a function state('showList', { url: '/listView', templateUrl: 'app/templates/showlist.html', controller: "showListCtrl" }). My controller, ...
0
votes
0answers
41 views

Can access response inside ng-click with ui route

I have a problem. Im confused because value from ng-model and ng-click can used inside templateUrl ui router. So, I have a template , example : thread.html. There are ng-click inside thread.html. So ...
1
vote
3answers
57 views

Routing Angular JS Not Working and not throwing error

I tried to use $routeProvider. But something wrong and i dont know what. Console not throwing error and nothing happen in my page. Im confused. Any solution for me ? This my code : var app = angular....
0
votes
2answers
54 views

How can I change URL from $scope in AngularJS?

I have made access navigation with $scope and I used them based on click and I did. I can't set URL in variable accommodate. The correct URL is http://www.example.com/base/index or http://www.example....
0
votes
1answer
35 views

isset in php not working in angularjs

I am new to angularjs and I am having issue with using isset in php. I am developing a website using angularjs-1. I want to get the value of the parameter in the url but I can't do it. Here's my code: ...
0
votes
2answers
44 views

Angularjs route doesn't show html in view source, but react does

As I'm using angular route for my SPA, my view page source is empty (only ng-view exists). I see a website developed by react , has the similar functionality. But when I see the page source, content ...
1
vote
2answers
42 views

Make two layouts share the same $scope

I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. Here is the JSBin: <html ng-app="...
2
votes
1answer
175 views

404 Not Found in AngularJS

I just started AngularJS. When I try to implemt following example, I am getting 404 Not Found This is my main.html <!DOCTYPE html> <html ng-app="demoApp"> <script src="angular.min....
0
votes
0answers
32 views

Angular JS routing does not go to proper default route

I have a question regarding routing in angular JS. I wrote a routing code which works fine when I run and execute it. But Wen I try to manipulate the url it gives me file not found error. For example: ...
1
vote
1answer
25 views

Angular Routing url shows some aplhabnumeric text

I'm working with angula rjs routin , everything works fine, but the routing is giving me a weird problem. When i click a link on my index.html page so the url look like the following http://localhost:...
0
votes
0answers
16 views

Angularjs router redirecting to https protocol

I have cross domain application where server is running on port 8080 which is on https .. i have no issue performing $http on url with https protocol.. but somehow i am facing issue with routeProvider ...
0
votes
1answer
19 views

Can we do routing using angular JS if we have same url for all the methods in the api?

I would like to know if I can perform routing operation in angular JS when I have same url for all the methods in the api. To be more specific about the question: I have a api which has same url ...
2
votes
0answers
18 views

angular template cache doesn't work when template key contains file extension

Template cache fails for me for some reason, when I do this: angular.module('myApp').run([ '$templateCache', function ($templateCache) { $templateCache.put('test.html', 'content'); } ]...
1
vote
0answers
63 views

Routing issues in rendering AngularJS components from Angular2 routes

I have a Hybrid(Angular1 and Angular2) repo which having mix of Angular1 and Angular2 routers. Followed the sample from https://vsavkin.com/migrating-angular-1-applications-to-angular-2-in-5-simple-...
0
votes
1answer
22 views

Injecting $location service makes my url with fragment identifier weird

Here is my angular code var app = angular.module('app', []); app.controller('mainController', ['$location', '$scope', '$log', function(location, scope, log) { log.info(location.path()); }]); And ...
1
vote
2answers
55 views

Inline angular template

I've been trying to make a small website that has a main page where a part is changed using templates. I've made an HTML file that contains a small menu for choosing what to show and two templates. If ...
0
votes
3answers
105 views

AngularJS routes returns 404 error when page is being refresh

I am new to angularJS and I love coding with it. I am currently building now a web-portal using angularJS, and each of my pages uses ngRoute. It works fine for me but when I tried to refresh the page ...
1
vote
1answer
87 views

MVC routing vs angularjs routing

While MVC itself has routing feature why should we use angularjs routing? I am expecting an answer apart from just addressing server side and client side issues
2
votes
2answers
48 views

Route change events while trying to avoid using $rootScope

As the Angular team (and severals blogs) adviced, I try to avoid using $rootScope as possible in my apps. $rootScope exists, but it can be used for evil "Of course, global state sucks and you ...
1
vote
1answer
26 views

ng:btstrpd err App Already Bootstrapped with this Element?

It's entirely possible I'm doing something stupid ... Full stack trace of the Error Error: [ng:btstrpd] App Already Bootstrapped with this Element < html class="js flexbox flexboxlegacy canvas ...
2
votes
1answer
40 views

AngularJS 1 Delay route until model is loaded

I have just started learning AngularJS and am building a website to develop my skills. I'm trying to delay angular from routing to a new page until the JSON data is loaded. I cant find an answer on ...
0
votes
2answers
38 views

Routes When Importing Not Working

I am currently attempting to add routing to my Angular 2 project. All of the components work, but when I add 'appRoutes' to my imports on app.module.ts , an error gets thrown saying Uncaught ...
1
vote
1answer
29 views

Angularjs routing cannot get '/webpage'

Let me start off by saying my apologies for the formatting. I'm posting from a mobile phone. In my /public/js/app.js I have this var app = angular.module("myApp", ["ngRoute"]); app.config(function(...
0
votes
0answers
18 views

How to switch views in routing? Can we call a directive in templateUrl of routeProvider?

I want to switch a view based on a flag (flag will be set at the time of user login in cookies) while routing. Something like that: $routeProvider.when("/editTest/:ID", { ...
0
votes
0answers
24 views

rootScope work incorectly (AngularJS)

The main problem is, when I open page paymentManagement, rootScope get undifined. When I open page incomeProfile.html manually and back to previos page rootScope get a data and evrything is good. How ...
0
votes
0answers
48 views

Angular list rendering

I've recently started to use Angular for front-end development to communicate with an API to perform state changes in the UI. I would like to know what is the way to update a front-end component after ...
2
votes
4answers
46 views

Angular simple single page app - Unknown provider: $routeProvider

I'm sure this is really simple and I'll get down voted but any help would be greatly apprecicated. I have a plunker here https://plnkr.co/edit/5tDXBPt4Ff3mM4ac5hWK?p=preview I'm setting up a simple ...
0
votes
1answer
41 views

Angular routes for following links?

I have link as mention below and i want to write Angular route condition for that. Link : 1.www.example.com/level-1 2.www.example.com/level-1/level-2 3.www.example.com/level-1/level-2/level-3 Like ...
2
votes
1answer
80 views

$stateParams empty ui router

I have a state as such: .state('home.deletemsg', { views: { "contentworker@": { url: '/delete/:entityname/:id/:redirectstate', templateUrl: "Scripts/proteanapp/templates/delete.html", ...
2
votes
1answer
55 views

AngularJs: Route Provider For Tab?

I am new to AngularJs. I am working in Angular Routing Concept. There are plenty of suggestion and examples are available for Routing and i am researching it. But its not fulfilling my requirement. I ...
0
votes
0answers
27 views

AngularJS with dynamic stateful views / routes

TLDR; Is there any way for me to automatically keep routes from unloading and keep state preserved? I am trying to build a client-side application where I want to be able to keep state (data, in-...
0
votes
3answers
115 views

angularjs routing is not working no error found

what seems to be wrong here i dont get any error but at the same time no progress in routing. . index.html <!DOCTYPE html> <html> <head> <title>My Angular App</title> &...
0
votes
2answers
45 views

redirect after login using $location.path(lastPath); will not re-run controller constructor

I have written a redirect service interceptor in anagular: angular.module('myApp.services') .factory('loginRedirectInterceptor', _loginRedirectInterceptor); function _loginRedirectInterceptor($q, $...
2
votes
0answers
413 views

Angularjs showing 500 internal server error on posting data to laravel routes

For some reason I'm getting a 500 interval server error when posting data from angular to laravel route. app.js var quora = angular.module("quora-app", ['q-controller-1', 'ngRoute', function($...
0
votes
0answers
107 views

AngularJS : Showing a spinner while during $http request

I put in place some routes with the $routeProvider. The place is that some templates need some time to load because of the $http requests. What I wanted to do is to display a spinner or a wait ...
0
votes
2answers
54 views

Angular js route not working when revisited

I am developing an Angular js application. Frankly, I am new to Angular JS. I am using angular js route to develop single page application. Below is how I configure my route. app.config(function($...
0
votes
1answer
67 views

ngroute change master page for specific route

I want to know if its possible to change the master page which is used by ngroute for specific pages. For example, I want to display different master page or exclude completely the master page for ...
0
votes
0answers
83 views

AngularJS component routing shows 404 on refresh or when manually entering url

I am using XAMPP Apache to run angular on localhost. When the server starts it goes into index.php, calls a component then from inside the app, it default links to Login with the path '/login' ...
0
votes
1answer
63 views

URL Rewrite for AngularJS not working in ASP.NET

I just created an asp.net app and have views to different pages like a courses page. I am running everything on: localhost:50717 on IIS. I have a routes.html page with an ng-view tag. Initially if ...
1
vote
2answers
39 views

Angular, what dependency is missing

I'm learning angular.js and have all libraries linked from CDNs. When I try to use $locationProvider and $routeProvider I get this error: Referee.config(["$locationProvider", "$routeProvider"], ...
0
votes
2answers
44 views

Is AngularJS Routing only used with ng-view?

As far as I understand, AngularJS routing configuration is required if you want to use ng-view for Single Page Application (SPA). My question: if I am not building SPA, and I dont configure routing, ...
0
votes
0answers
30 views

customize url using ui-router

My folder structure is like this index.html app.js view/compare.html assets/js/angular.min.js assets/js/angular-ui-router.min.js i want a custom url for view/compare.html page like /compare only. ...
1
vote
0answers
15 views

Angular js 1 : stateProvider … how to configure state and its child state once parent is resolved and then child

I am working on angular js state providers...I am using parent states and its child states. For example .. Parent state is 'home'(url:/home) and its child state is 'home.profile'(url:/home/profile) ...