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

learn more… | top users | synonyms

3
votes
1answer
33 views

Angularjs Client-Side Routing with ui-router

I use ui-router (states) for my routing: $urlRouterProvider.otherwise('/Home'); $stateProvider .state('home', { url: '/Home', templateUrl: '/Home/Home', controller: ...
1
vote
1answer
61 views

AngularJS routing doesn't work

I can't implement angularJS routing in my page, when I first made it, it worked, but after browser returns nothing. Code: http://plnkr.co/edit/lIXeC0X6SkzXKcr8hoAp?p=catalogue app: ...
0
votes
2answers
25 views

Getting a # in URL from angularJS $stateProvider

I am getting a strange # in the middle of my url for example if I try to go to localhost:8080 where I have my AngularJS app running I am redirected to http://localhost:8080/#/home. I don't understand ...
0
votes
1answer
30 views

Angular routing based on a condition

I have been trying to find a way to implement angular routing which routes based on a condition rather than which link the user clicks route1 -> view1 route2 -> view2 To add complication, the ...
0
votes
0answers
32 views

AngularJS: Routing runs controller twice

I'm trying to build custom radio buttons, and I've discovered that my controllers are being executed twice for each instance. I have not specified the view controller twice. That seems to be the ...
0
votes
0answers
12 views

Asp.Net Routing not working with AngularJS Routing

I have many Asp.Net MVC Controllers like User , Home , etc . I am applying AngularJS Routing only to User Controller but problem is that it is applying on whole project .For Example Here is my User ...
0
votes
2answers
26 views

Display different template on selecting an option in menu

I'm trying to display different templates on selecting the menu options. I'm able to display it, but I want the menu to be displayed along with respective template selected in menu list (i.e., I want ...
0
votes
0answers
19 views

AngularJS and TypeScript - defining a service to be used in a controller

I can't make this thing to work, it is super stressing and confusing. I want to define an Angular service and use it in an Angular controller. The service knows if the user is logged in and the ...
0
votes
1answer
40 views

Angular otherwise doesn't work in case of <a href>

I have the following in one of my templates (under a folder name "partials") <a href="index.html">&laquo; Back to search</a> in one of my js I define the routing in the following ...
1
vote
0answers
50 views

Implementing Dynamic Routing in Angular2 (Typescript)

RouteConfig class which can be used to decorate a component (@RouteConfig) with routing capabilities has certain route definitions defined for that component. Now, the catch is to have these route ...
0
votes
0answers
34 views

Initialize angularjs at the page enter asp.net mvc

Hello a question about routing with angularjs and using it's templates. I have had 2 layouts at the beggining one is which did not have angular js and other did and everything worked fine, but ...
0
votes
2answers
34 views

NgRoute not working

For some reason im not sure about my ngRoute here is not working properly. Please help me thankyou. Here is my cloud9 file where you can see live preiview and edit code. And here is my script.js: var ...
0
votes
1answer
29 views

AngularJS website with user logins

I want to make a website where people can register and log in, but if I'm right. Everytime the user refeshes the page he will be logged out? How do I prevent that? For example: User logged in ➞ ...
1
vote
1answer
63 views

angularjs with fullpage.js anchor and routing(complex)

I try to combine angularjs with fullpage.js on the index.page. Also, there are still some pages just rendered normally by route. Here is my route in app.js app.config(['$routeProvider', ...
1
vote
3answers
27 views

AngularJS - Angular Routing App

I have a Angular Application, in a main.js file i have defined the app routing but i have a doubt, for example, i have a accodion menu of bootstrap, when i click about the next button: <a ...
0
votes
1answer
27 views

UI routing not working, angular JS

I'm trying to display main.html template via UI routing, but its not working for some reason. Can someone please point out the mistake in my code. Thank you. appModule "use strict"; ...
1
vote
2answers
31 views

Strange Failed to load template with AngularJS app

I'm trying something very basic where i have folder structure something like This is my HTML file: <!doctype html> <html lang="en" ng-app="phonecatApp"> <head> <meta ...
0
votes
0answers
46 views

iis 404 error when removing hash tag from url angularjs app

I'm developing a single page app using angularJS(client) and mvc web api (server). I have two physical page first Login.html and second Index.html when user successfully log in redirects to ...
0
votes
3answers
45 views

some angular material content does not show using angular-route

I'm new to angular js and angular material. i am working on web form app consist of 4 steps(view) i am using $route provider to switch between views however in first step only show content outside ...
0
votes
1answer
26 views

Weird flow of simple mean stack application

Here is my implementation of simple mean stack application server.js var express = require('express'); var app = express(); var mongojs = require('mongojs'); var db = mongojs('contactlistDB', ...
1
vote
2answers
21 views

Pass object through ui-router to controller

I'm creating a user profile page using angular/rails. I've set up a StateProvider using ui-router, like so, $stateProvider .state('friendprofile', { url: '/{name}', views: { ...
0
votes
1answer
44 views

How to use AngularJS UI-router capture this URL with an optional parameter?

I'm using AngularJD ui-router to capture my URL and send two parameters from that URL to my controller. Here are my requirements: The first parameter is a mandatory integer (id) The second parameter ...
0
votes
3answers
35 views

ngRoute not working in Angular?

Here's the main index: I have two .php files which needs to be viewed in template.(ng-view) mainFrame.php <!DOCTYPE html> <html lang="en-US" ng-app="app"> <head> ...
0
votes
1answer
35 views

Angular MVC Routing with Custom Controller

I have an Angular MVC app that has couple of controllers. Default and another custom controller that I added. http://example.com/home/ http://example.com/ManageSummaryInfo/ All my business logic ...
-2
votes
0answers
28 views

Yet Another Undefined ngParams

I would like assistance in determining why $ngParams is undefined in my angularjs controller. The goal is to use the parameter as a value for retrieving details about the entity. a url is constructed ...
0
votes
1answer
30 views

Callback url in angularjs with parameters for forgotpassword

Tried scouring the internet to find the solution but had no luck for a couple of days now. I am trying to implement a forgot password feature with web api but am getting stuck with the call back after ...
1
vote
1answer
30 views

Can we use angular without routing in MVC5

Can we use angular in asp.net mvc without using its $routeprovider, as in i want to use angular in few pages without having to register the routes is it possible to have so. In short can we use ...
0
votes
1answer
47 views

ui router - Passing data from controller to another view

Without injecting services how to pass data from one view's controller to another view. I refered data,params, resolve, parent-child concepts but I am not able to figured it out. Here is the ...
1
vote
3answers
42 views

Access ID of view in Angular JS

How can I access the customerId of a customer in the controller once the view got loaded? app.js: $stateProvider.state('app.customer', { url: '/customer/:customerId', views: { ...
0
votes
0answers
33 views

AngularJS use html5mode with hashbang mode

I would like to use relative url (href="search/") with hashbang mode in Angularjs. So I used this part of code: $provide.decorator('$sniffer', function($delegate) { $delegate.history = ...
1
vote
1answer
19 views

AngularJS $state.go pass always empty valure for parameter

I've tried to pass one parameter white $stete.go. ROUTER $stateProvider.state('login.signin', { url: '/signin', params: { login_event: '' }, templateUrl: ...
1
vote
1answer
34 views

I don't believe Angular UIrouter is routing to my view

Not changing to the correct template via ui-view when I click on the button in my footer to route to that view. Console is not spitting out any errors, so I am baffled. Here are my states ...
0
votes
2answers
55 views

Change AngularJS urls with ng-model

Is there any way to change AngularJS urls with ng-model? var scotchApp = angular.module('scotchApp', ['ngRoute']); scotchApp.controller('mainController', function($scope) { ...
3
votes
3answers
96 views

Removing the # from AngularJS Routing

I checked Single Page Apps with AngularJS Routing and Templating tutorial and found Pretty URLs in AngularJS: Removing the # tutorial for remove # tag from URL. I did all the things but I can't get ...
2
votes
1answer
92 views

Angular routing in Spring Boot web application

I'm developing some project using angular and spring boot and I have some confussing situation: I have Spring Controller to share view file names with my application @Controller public class ...
0
votes
2answers
45 views

Angular js directive in module not working correctly

I have one module call "menuLeft", when module he initiate ,not loading correctly my directive, but if run my function en el method "run" correctly. I dont know why is this. This is my code ...
0
votes
3answers
103 views

Why angular routes are not working in ASP.NET MVC

I am new with angularjs, and implementing it in ASP.NET MVC. I read few articles and implement code like below, this is my layout page, @{ Layout = null; } <!DOCTYPE html> <html> ...
0
votes
3answers
79 views

AngularJS routing not working, but no errors are thrown

I'm following this video tutorial and messed something up in the haste.. The problem is that I got rid of all the errors I made, but it still doesn't work as expected. The search form box doesn't ...
2
votes
2answers
37 views

AngularJS ui-router unable to load templateUrl

I have this kind of project structure: index.html <html> <head></head> <body ng-app="myApp"> <div ui-view=""></div> </body> </html> ...
2
votes
2answers
62 views

How lazy load js scripts synchronously? [closed]

I'm trying to find a tool or a .js lib to lazy load my scripts on demand of the routes/urls'. Basically, I want to: state = { state: 'widgets', config: { url: '/', templateUrl: ...
1
vote
1answer
35 views

anchor href linking with angular routes

I use angular routing between multiple views and try to populate a common breadcrumb list on each route change. This works fine except that the hyperlinks in the breadcrumb don't work. Essentially I ...
1
vote
1answer
25 views

different template url on basis of role angular

I have route configuration like : .config(['$routeProvider', function ($routeProvider) { $routeProvider .when('/home', { ...
0
votes
1answer
39 views

passing the path params with object in angularjs

I have a partial from which I need to call a route which will have a controller and a view of its own. When I call the route, I also need to pass a json object to the controller. I have done this ...
3
votes
2answers
38 views

How do i define routing to navigate to details page when link clicked

I need some help to implement list and details page. I have motorList.html page where i am listing all motors as hyperlink retrieved from server (database). motorList.html <div> <ul ...
4
votes
2answers
38 views

Controller gets initiated twice

I have a simple controller (logincontroller) which gets initiated twice when loading login.html, however I do not know why that happens. MyApp.js: angular.module('PVM', [ 'Authentication', ...
1
vote
1answer
11 views

on create/update, using $state.go('main.myEntries') but until reload the updated or new content doesn't show

I have a page where user can create or update entries. Then, when user hits 'Submit' the create or update is done and user is sent to the My Entries page. However, until I reload the page, I am ...
0
votes
0answers
25 views

Integrate Rails served template using AngularJS

I need to render an AngularJS view that formats and shows the data a rails json api returns. Have seen similar issues in stackoverflow, but the solutions didn't help. rails - routes resources ...
1
vote
1answer
33 views

Angular JS $state conditional from controller is not working

I have a wizard in AJS and it has around 10 views. Based on user selection and other parameter my controller decide next view and set $state.go('new view'). But the code seems to be not working.. not ...
-2
votes
1answer
26 views

populating an array using a form and displaying the array in separate views angularjs

I am in the process of learning AngularJS and Ionic to create an app for a semester project, but I am having trouble finding a resource to show me how to solve my problem, so I am calling all NG and ...
0
votes
1answer
23 views

angular $routeprovider endless optional param

I'm trying to create file & folder manager using angular-js. So i need endless optional parameters for folderIds to handling this: example.com/drive/1/2/3/4/5/... Do we have something like ...