The built-in routing object in AngularJS, which can map the browser URL to a defined route.
0
votes
1answer
17 views
Angularjs routeprovider.when for set of conditions and one controller
I have 3 urls(blog, help, tips) for routing which will be having same controller and same html page.
rcapp.config(function($routeProvider) {
$routeProvider
.when('/csv-validation',{
...
0
votes
3answers
26 views
How does Angularjs routing work for applications outside the browser?
I am creating a single page app (mobile/desktop) using AngularJS. Based on the limited knowledge I have of AngularJS, I think the routing for the apps/websites is based on urls and ...
0
votes
0answers
4 views
Design - nav that sending data
Iam building my first angular app and I have a design question that I'm racking my brain couple of days.
I got a nav and lists in the nav. Every li is sending data to a function in a controller that ...
1
vote
1answer
14 views
How can I construct an AngularJS state parameter in the view by concatenation?
Using the AngularJD ui-router, I have defined a state myState that takes 3 parameters: stateParam1, stateParam2 and stateParam3.
In my view the variables var1 and var2 are already defined. I pass ...
0
votes
1answer
35 views
angularjs and brackets live preview: The simplest code doesn't work
I'm a newbie to angularJS and I'm trying to make the simple thing to work but I fail.
HTML:
<!DOCTYPE html>
<html>
<head>
<script ...
1
vote
2answers
25 views
Angular route provider not working
I have MVC application with angular. Iam using route provider that is working fine on debug mode but when Im setting my app on iis it's not working, the site url should be: ...
0
votes
1answer
24 views
bootstrap component tabs, carousels etc not respond
Until my contact page was a static HTML ie contact.html the bootstrap component tab, carousel etc work fine
as soon as I used ngRoute, routing to a partial view these components functionality no ...
3
votes
1answer
40 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
64 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
29 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
33 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
36 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
14 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
20 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
45 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">« Back to search</a>
in one of my js I define the routing in the following ...
1
vote
0answers
59 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
2answers
39 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
75 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
28 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
28 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
34 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
55 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
49 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
28 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
25 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
49 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
38 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
38 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 ...
0
votes
1answer
43 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
33 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
43 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
20 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
35 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
62 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
111 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
120 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
50 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
122 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
87 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
44 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
40 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
27 views
different template url on basis of role angular
I have route configuration like :
.config(['$routeProvider',
function ($routeProvider) {
$routeProvider
.when('/home', {
...
0
votes
1answer
41 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
39 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',
...