Tagged Questions
0
votes
0answers
14 views
Is there anyway to detect ui-router routing of angularjs in express routing
I am new to both angular and node. I am working on a project which has social sharing but due to angular issues it was not happening correctly. So I found a solution to reroute the url when facebook ...
0
votes
0answers
12 views
Angular1 and Adsesne
I have an angular app. I am trying to log what pages are viewing the ads. I have my analytics and my Adsense accounts linked and I can see the data in the publisher view. I have embedded the analytics ...
0
votes
1answer
39 views
Angular UI router sub states not working on IE
As I said in my other question, I'm creating a webapp in AngularJS with NodeJS, Express and Angular-UI-Router.
At first I couldn't get the page to load at all (I managed to solve that problem), now ...
1
vote
2answers
50 views
AngularJS Node app downloads instead of loading in Internet Explorer
Whenever I try loading my AngularJS webpage (on a node js + express server) through http://localhost:3000, Internet Explorer just tries to download it with a random name and no file extension, instead ...
0
votes
0answers
13 views
Angularjs admin board with adding views
I need some help on the logic how my web application should be designed and implemented.
I have an Angular app with the possibility to log in as admin to manipulate the site (Add news, blog posts and ...
0
votes
1answer
37 views
Angular ui-routing with domain aliases
We use Angular-UI-Router to navigate to our website. That is working fine. But we want to use domain aliases which point to a specific page of the website, with the url of the alias in the addressbar.
...
0
votes
1answer
40 views
Ui-router not generating templates having checked all options
I'm trying to use a ui-router in Angular to generate a single page with multiple templates in <ui-view></ui-view> but it is unable to load a single template. It just gives a blank page ...
0
votes
3answers
47 views
Push parameters to URL in angularjs
I am making an angularjs app and I have to push user's company name to url.
For example, www.myapp.com/samsung or www.myapp.com/toyota.
My strategy to achieve was that first retrieve user's company ...
0
votes
1answer
27 views
Angular App using NodeJS: setting two home/index page inside same App for two different domains
I am planning to build a web application using Angular, NodeJS and MongoDB.
The main two views and theirs associated services and controllers are:
1. cats.html
.... cats-ctrl.js
.... cats-...
0
votes
0answers
27 views
Angular App: Using two domains to point into same app's different states to use as home page
I am planning to build a web application in AngularJS using Node JS and MonogoDB. Here I am confused a little bit, the basic functionality of the app will be:
1. sell used cars by owners on my portal ...
0
votes
3answers
69 views
angular js state provider with dot in url not working
I am using angular js state provider. I want my url like this.
http://localhost:8080/state1/state1.html . It says "Cannot GET /state1/state1.html".
Here is the code
$stateProvider
.state('state1'...
0
votes
1answer
47 views
How to link NodeJs and Angular JS (without any frameworks such as Express)
I have Angular JS routing set as following:
function routing($routeProvider) {
$routeProvider
// route for the home page
.when('/', {
templateUrl : '/index.html',
...
0
votes
1answer
79 views
Cannot Resolve State with ui router
I'm trying to use ui router to set states after I pulled pages from a database, but It came up with this error every time I'm trying to click on a sref-link. Here are the app/app.js and the app/index....
0
votes
0answers
17 views
Run controllers only after initialization is complete in AngularJS with angular-global-resolve
I am having a problem where my controllers are running before initialization of my app, and I came across this NPM package that works almost perfectly. The only problem I'm having is the ...
1
vote
1answer
60 views
Project structure for large Angular application?
I am new to angular js
I want to create my project structure like this
- APPLICATION
-index.html
-app.js
-modules
-core
-controllers
-directive
-views
-core....
0
votes
0answers
23 views
AngularJS and ui-router templating doesn't update ui-view
I'm trying to spin up a server.js from node and have $stateProvider host a template file (with the top bar nav + footer remaining static) and only update the container between them.
However, after ...
0
votes
0answers
35 views
Cross origin with Angular ui-router
I am trying to run a very simple Angular ui-router project and I am getting the well known error: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, ...
1
vote
0answers
117 views
socket.io and ui-router change state
I found some question about this, but no proper solution.
I want to accomplish something looks theoretically simple:
I have 2 views (ui-router states):
"list" that shows a list of documents with "...
6
votes
1answer
37 views
secondary level routing in node js changes root directory
In my web project I am using angular JS and node JS both at the same time.
For routing my url in Angular JS I have used the below code
app.config(function($routeProvider,$locationProvider) {
$...
-1
votes
0answers
10 views
Angular/node noob in need of guidance: Sending a “run function” command to my server using a button on a template with a controller?
So this app that I'm building uses a node.js server, some html templates, some SQL, and some javascript to do things.
I recently attempted to make my quickstart.js file a controller for my ...
1
vote
2answers
3k views
has no exported member 'ROUTER_DIRECTIVES' and 'provideRouter' in Angular2
I am new to Angular2. I have created a new project with
angular-cli: 1.0.0-beta.17
node: 4.1.0
npm: 3.10.8
Package.json:
"dependencies": {
"@angular/common": "~2.0.0",
"@angular/compiler": "...
2
votes
1answer
90 views
MEAN stack how to handle login and redirect
I have a simple MEAN stack application, just try to learn about authentication and get it to work.
You can checkout the complete program in github: https://github.com/7seven7lst/chatterApp
I have ...
2
votes
1answer
31 views
How do I pass in parameters to the express.js server side routing for a MEAN.js package.
I am a beginner working on a project structured by mean.js. I am still trying to figure out how the whole project struct works and I am a little stuck.
Currently, I have two crud modules. A project ...
3
votes
2answers
47 views
RESTful Crud MEAN.js routing
I am pretty new to the MEAN stack and I am currently using mean.js to structure my app. I am currently playing around to see how the routing works in Express and Angular.
One of my server routes:
...
0
votes
1answer
29 views
Cannot reload second level routes in Express (running Angular app)
I can reload first level routes with these settings, but not second level routes. The 'game' route defined below for example cannot be reloaded, but the login route can.
I have added <base href="/"...
0
votes
0answers
10 views
reloading a page gives “Cannot GET /dashboard/[email protected]” - angular ui-routing [duplicate]
this is the state :
.state('userDashboard', {
url : '/dashboard/:email',
templateUrl : '/templates/dashboard.html',
controller : 'dashboard'
})
this is how I reach to this state:
$state.go("...
0
votes
0answers
56 views
AngularJS ui-router always returning 404 on EJS files
First of all, I tried searching almost everywhere and may be I am still not clear about how to work with Angular ui-router and Express EJS templates. I'd much appreciate if you could help me out with ...
0
votes
1answer
36 views
Angular ui routing and permissions
I am currently using ui.router for my page routing in my Angular application but it am starting to get a bit of issues with exploiting parts of my applications to users that don't have permissions to ...
0
votes
1answer
67 views
404 when deleting a mongo document via express, mongoose, and angular
I'm new to using the MEAN stack, have learned some of the basics to add data to mongodb using mongoose, express, and ui-router. However, I can't figure out how to delete a document. Whenever I try, I ...
1
vote
1answer
1k views
UI-Router: param values not valid for state
the github repo for this question
Im absolutely hopeless.
I create a angular 1.5.8 app, that show nodes on screen. there are 2 types of nodes - Folders and Pictures.
When click on picture node, it ...
2
votes
1answer
266 views
AngularJS, ocLazyLoad and ui-router: How to load on demand without centralize 'state' on the main app.js class
I'm very new on ui-router and ocLazyLoad and probably this question could be easy to resolve but the fact that I'm writing here its because I did not have luck searching on blogs. My app is running ...
0
votes
0answers
57 views
Express JS 4 and html5Mode redirect not working
I'm trying to implement html5mode(true) for my angular app on my Node/Express server.
I'm getting the dreaded "cannot /GET" error when I try to reload.
The fix that I see being implemented for this ...
0
votes
0answers
28 views
Redireting route in express for html5mode in angular not working
I'm developing an app with NodeJs, ExpressJs and Angular.
I'm trying to prettify my url by implementing $locationProvider.html5mode(true);
This works, but I'm running into the issue when I refresh a ...
0
votes
0answers
62 views
Redirecting AngularJs requests to index.html from Node/Express for html5mode?
I'm going nuts with this one...
I'm developing a angular app where I used the yeoman angular scafolding.
My server side is node/express and I'm using AngularJs on the client side.
I'm trying to ...
0
votes
2answers
88 views
Angular: Reloading/URL navigation reverts to default route
I'm using Angular 1.3.10, ui-router 0.2.10, and Express 4.14.0 for a basic Reddit clone, and I'm having trouble with routing.
My (abbreviated) Express routes:
router.get('/api/home', function (req, ...
0
votes
3answers
109 views
Ui-router refresh issue
I have configured my ui-router like this:
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
$stateProvider
.state('home', {
url: "/home"...
0
votes
0answers
46 views
Loading views with out css and js with Angular and Node Routing
I am building an app which uses Node and Angular routing. I want to handle all the routes in Angular.
Folder Structure:
public
Images
css
js
partials
_search.html
home.html
index.html
sass
all ...
1
vote
0answers
39 views
Angular JS shows blank screen when user idle for long time
My application is built in MEAN Stack. Application works fine but when a page kept idle for long time its content get blank and blank screen shows.
I also using socket in the application. No idea ...
0
votes
1answer
47 views
Custom sharable and bookmarkable url with anglular ui - router request params
Currently, am storing my data in cookies and passing it via ajax call to fetch data from the server.
So, currently my webapp is specific to single client machine and url is not sharable. So I want to ...
0
votes
1answer
121 views
Ui-router AngularJS: How to access to session variable 'req.user'
I'm using angular to deal with some routes,on the server side I'm using passport so basically I can acess to the user session variable req.user in my views , but when it comes to a route renderred by ...
0
votes
0answers
72 views
How to set base jade for all files with ui-router
How can I create a base jade file for next jade files? Because if I have something like this:
base.jade
doctype html
html(ng-app='app')
head
title= title
meta(charset='utf8')
meta(name=...
1
vote
0answers
45 views
Weird 404 with angular uirouter and jade
I have a weird problem with angular uirouter.
So the page loads but in the console I get 404 that users/login - templateUrl couldn't get load, but as I said before the whole page has been loaded (...
0
votes
0answers
143 views
Loading views using Ui-Router on NodeJS
I have a route config as such, where index is the main page, and inside the index there is an
<div data-ui-view></div>
app.config(function ($stateProvider, $urlRouterProvider) {
'use ...
0
votes
1answer
22 views
url/state changes not working after angular.copy called in a factory
I'm at my wits end on this one, so any help is greatly appreciated!
I've been making an angular/node/mysql app for the past few weeks and came across this issue. I have a database running mysql that ...
0
votes
0answers
76 views
angular ui router nested state with params cannot load stylesheet
I'm still new to angular ui router and I have problem with nested state / nested views need your help.
I have angular app using ui.router with the states definition as bellow:
$locationProvider....
0
votes
1answer
567 views
Redirect to UI-router state in Node.js
I display list of the products; once clicked on the product row, the full screen detail view is displayed for it. I am using ui-router for front end routing to to get from list view to detail view. ...
0
votes
2answers
37 views
How do i check if user is logged in angularjs with $routeChangeStart
i'm newbie in angularjs i want to check if my user logged or not via
i'm newbie in angularjs i want to check if my user logged or not via
via $routeChangeStart
Controller
angular.module('crud')...
0
votes
0answers
50 views
Page not found, with using angular-js, node.js, and ui-router
I'm following through this tutorial: https://thinkster.io/mean-stack-tutorial#introduction.
when i'm coming to the end of Beginning Node section, i'm running the command : npm start, but i'm getting ...
0
votes
1answer
70 views
How to map URL to node.js route
I am using ui-router with Angular and Node.js as my UI server for API calls to another server. Right now, my browser URL (dynamic based on dropdown selections) does not map to the server.
For ...
1
vote
1answer
688 views
How to append query strings to the URL in Angular ui-router
I am pretty new to AngularJS. I am using ui-router and node.js as my UI server for API calls to another server. Right now, I am having trouble appending query strings to the URL depending on user ...