The built-in routing object in AngularJS, which can map the browser URL to a defined route.
0
votes
1answer
24 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
34 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
24 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
0answers
22 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 ...
11
votes
2answers
7k views
AngularJS: Resolve in RouteProvider - detecting Success / Failure?
I have got a resolve working on my routeprovider but I just return the promise so i don't know if its success or failure. This is what i have
.when('/items', {
templateUrl: ...
0
votes
3answers
35 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 ...
271
votes
13answers
117k views
Delaying AngularJS route change until model loaded to prevent flicker
I am wondering if there is a way (similar to Gmail) for AngularJS to delay showing a new route until after each model and its data has been fetched using its respective services.
For example, if ...
0
votes
1answer
22 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
30 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
1answer
34 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 ...
32
votes
5answers
11k views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...
0
votes
1answer
25 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', ...
30
votes
5answers
19k views
Is there a way to preload templates when using AngularJS routing?
After the Angular app is loaded I need some of the templates to be available offline with preload: true
Something like this would be ideal:
$routeProvider
.when('/p1', {
controller: ...
1
vote
2answers
19 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
36 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 ...
456
votes
9answers
102k views
AngularJS : Difference between angular-route and angular-ui-router
I am new to AngularJS. I find Angular quite interesting and planning to use angular in my big apps. So I am in the process to find out the right modules to use.
What is the difference between ngRoute ...
5
votes
5answers
4k views
AngularJS and Laravel 4 routing conflict in HTML5 mode
I would like to remove the # hash from URLs using Angularjs' $locationProvider.html5Mode(true).
Example: The address bar displays http://localhost/shop instead of http://localhost/#/shop.
...
0
votes
3answers
31 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>
...
-2
votes
0answers
25 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
18 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 ...
0
votes
1answer
6k views
AngularJS ng-template Directive Not Found in routeProvider
I am attempting to include multiple partial templates to be included in an ng-view, but the routeProvider directives are always trying to fetch the file from the server (not the embedded ng-template).
...
1
vote
1answer
25 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 ...
1
vote
1answer
1k views
Angular 1.4.5 : Uncaught Error: [$injector:modulerr] ngRoute
When I try to refresh the page I have this error :
angular.js:38 http://errors.angularjs.org/1.4.5/$injector/modulerr?
...
1
vote
1answer
226 views
Angularjs ui-router in html5 enabled mode not working
Angularjs version 1.3.14, ui-router version 0.2.15, html5mode enabled. When I try http://localhost/firsttime it redirects to http://localhost as fallback
Here is app.js
'use strict';
// Declare ...
0
votes
1answer
40 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
36 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: {
...
2
votes
2answers
87 views
How to do load page in Angular JS?
How to load content on page by clicking on menu links?
For example, there is menu:
<a href="#">Personal</a>
<a href="#">Contacts</a>
Question is in how change template HTML ...
0
votes
2answers
42 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
...
1
vote
1answer
17 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
32 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
0answers
30 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 = ...
2
votes
2answers
48 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) {
...
5
votes
3answers
76 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
54 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
3answers
74 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
1answer
69 views
AngularJS .run() causing initial views to not load
I have the following setup in my main angular.js file
var application = angular.module('application', [...]).config([..., function(...) {
//Setup routes
$routeProvider...
}]).
...
2
votes
2answers
53 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: ...
0
votes
3answers
60 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
31 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
3answers
964 views
Controller being called twice in Ionic (AngularJS)
In my angular project the user accepts a EULA then get automatically redirected to their dashboard, however, on this redirect the DashboardController seems to be being called twice, the ...
-1
votes
0answers
33 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
28 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 ...
0
votes
2answers
183 views
Routing - Ng -hide , Ng-show AngularJS
I have a base HTML file dashboard. In dashboard I have included a header HTML file with a menu. .A content tml file. A footer HTML file using ng-include.
Now I want to click on the menu on the header ...
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 ...
1
vote
1answer
22 views
different template url on basis of role angular
I have route configuration like :
.config(['$routeProvider',
function ($routeProvider) {
$routeProvider
.when('/home', {
...
0
votes
2answers
885 views
Module 'ngRoute' is not available
I have linked the script in my index.html, and referenced it in app.js, but I keep getting the error that ngRoute is not available. Any help would be greatly appreciated!
app.js
...
0
votes
1answer
34 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 ...
4
votes
2answers
34 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
21 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 ...