The built-in routing object in AngularJS, which can map the browser URL to a defined route.
2
votes
2answers
26 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 ...
1
vote
0answers
18 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
1answer
31 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
40 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
38 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
22 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
49 views
How lazy load js scripts synchronously?
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
votes
0answers
24 views
How to check the logic in $urlRouterProvider to redirect the url?
I have two kinds of users(public and authenticated), i need to setup the url according to the user.
When public user access the url as empty need to redirect to '/p'
$urlRouterProvider.when('', ...
1
vote
1answer
26 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
18 views
different template url on basis of role angular
I have route configuration like :
.config(['$routeProvider',
function ($routeProvider) {
$routeProvider
.when('/home', {
...
0
votes
1answer
30 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
30 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
17 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
26 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
22 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
19 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 ...
0
votes
1answer
18 views
Dynamically change state url page number for pagination in angualrjs
how to change/add the state and url for pagination
example
.state('result.({pageNumber:[0-9]{1,4}})', {
url: '/{pageNumber:[0-9]{1,4}}',
templateUrl: 'tpl/search_result.html'
...
1
vote
1answer
18 views
Angular not found until after it's needed?
We're trying to get Angular set up for a fairly simple project using Gulp, but we're somehow failing at the first hurdle. Here's what we have set up, more or less:
index.html:
<!doctype html>
...
0
votes
0answers
29 views
Detect Forward and Backward Routes througth a Button - AngularJS
Plenty of folks have asked how to detect back button clicks/gestures in AngularJS but that is really only half of the equation.
In order to use ngAnimate transitions, specifically a slide left on ...
0
votes
0answers
23 views
Background Color CSS flickering before Angular ng-view loads
Frontend question. I'm building an Angular application using ngRoute and ng-view to handle page displays. The body of my main index.html page has a background color gradient.
For some reason, the ...
0
votes
1answer
34 views
How do I access Javascript elements within my Angular ng-view using $routeProvider?
I am creating an Bootstrap/Angular app and using $routeProvider to render the views, and want to have tabs within one of those views. However, the active tab Bootstrap functionality isn't toggling. ...
0
votes
0answers
25 views
Conditional Route in Angular Route Provider
I have a UI page that I want to fork depending on information returned by the underlying Go Application.
For example, I have:
when('/graph', {
title: 'Graph',
templateUrl: ...
0
votes
1answer
32 views
Angualr & Ionic - Access to route parameters
I need to get the route parameter in my Ionic app.
This is the app.js file ( the config section ):
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
...
1
vote
2answers
68 views
How to navigate one page to another page using AngularJs
How to navigate from one page to another page. Assume i have a login page, after entering username and password fileds while click on submit button it needs to validate and if both username and ...
0
votes
1answer
13 views
Stateui Does not update. Could not resolve 'state.signup' from state 'home'
So I've been running into this pretty dumb problem with states lately. I am creating my states with the parent.child state as so:
$stateProvider
.state('home', {
url: '/home',
...
0
votes
1answer
31 views
Angular-ASPnet - Routing Failed
After authentication, I need access to my main page.
My controller Angular:
$window.location.href = 'Home/Index';
And arrived in my index page, I get the error below:
I do not understand ...
0
votes
0answers
18 views
Angular relative links works navigating site, but not from outside
I have this in my angular app.config()
$locationProvider.html5Mode({
enabled: true,
rewriteLinks: false
});
so that I can have URLs like /about/history instead of /about#history where ...
0
votes
1answer
51 views
angular nested modal over items list
BaseUrl: /en/products/
I have: State URL:
/en/products/doors?color=red&type=shaped
This state contains list of items to be sold. Filtered by params.
When I click on one item (name: Red Beech ...
-3
votes
1answer
96 views
AngularJS module routing with material design CSS issue
I will try to integrate material design with routing in angular js, but CSS design is not working. If I will check using bootstrap CSS, it's working.
Plnker Demo
If I will try this way it has given ...
1
vote
1answer
45 views
$routeProvider / $locationProvider not a function in AngularJS Routing
I'm trying to create so-called 'SEO-friendly' URLs in AngularJS.
In my script.js for the routing I have:
app.config(['$routeProvider',
function($routeProvider) {
$routeProvider.html5Mode(true);
...
0
votes
2answers
123 views
Umbraco cannot find the route in backoffice
I've used Umbraco 7.3 in my project. I created a custom data type but when I want to call a Surfacecontroller in here is HelloSurfaceController or Hello2SurfaceController, I got an error in umbraco ...
1
vote
0answers
19 views
Error using middleware to redirect grunt server to root
I have tried all solution listed here and here but I always end up with an error similar to the one below :
TypeError: Cannot read property 'forEach' of undefined
at ...
1
vote
1answer
34 views
How to work with index.html, ui.router, and redirect back to home
I use for testing python simpleserver to test my angular app. I new to ui.router and trying to get index.html work properly and when trying to go home using e.g.
<a class="navbar-brand" ...
0
votes
0answers
25 views
Attribute Routing issue in WebAPi
I've my controller code as
$scope.srchbycat = function () {
var promisePost = ...
0
votes
1answer
57 views
How to dynamically build a menu from json?
Right now my main menu html is being edited by hand. But i want to create the main menu dynamically from json. how can this be done?
I have the following app.js:
var app = angular.module('MyApp', ...
3
votes
1answer
46 views
header hide for a particular page in my angular
I m working on angular project and my need is hide header block on login page only. I tried to hide header on login page. But it still doesn't work for me. Can you any one help me to hide it on login ...
3
votes
1answer
139 views
Angular Ui-Router-Extras | Trying to implement sticky states, but not working
Well, I have this plunkr trying to simulate my situation:
I have 3 tabs and the idea is that the user type a word on the textbox, and when click the button, an angular service returns an answer ...
5
votes
4answers
155 views
Force reload route/state on link click
Currently I'm doing something like this
link.on('click', function () {
if (link.attr('href') !== $route.current.originalPath)
return;
$route.reload();
});
I'm not aware of side ...
0
votes
1answer
58 views
Angular routing with parameter issue
I have MVC application, I want make routing for the following URL
http://localhost:2668/Home/User/1
I try
.config(function ($routeProvider, $locationProvider) {
//here we will write code for ...
1
vote
2answers
73 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
42 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
53 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
28 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
29 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
46 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
51 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
106 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
35 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) {
...