Tagged Questions
0
votes
2answers
19 views
Angularjs, Expressjs and passportjs for authentication checks on server side
I have a node.js application where I have used Yeoman scaffolding for angular. I am also using expressjs for server side.
So basically my app structure is
app
-->views
--> more files
server.js
The ...
0
votes
0answers
21 views
How to deal with browser history using angular/node/express
I am working on a single page web app that will require users to sign in to be able to see various different views. I have a two part question with regards to browser history, and allowing users to ...
0
votes
0answers
14 views
generator-karma does not satisfy its siblings' peerDependencies requirements
The same notorious error
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants ...
0
votes
0answers
27 views
AngularJS updating mongoDB
I'm having some trouble updating my mongoDB from a Node server. Sorry, but I'm having some trouble tagging the code. Might come out as regular text.
The error i get is on the node server and states ...
1
vote
3answers
18 views
Issue getting information to jade template with angular
I am working on a simple web app (new to it) and I am using jade/angular. I am trying to get a list to display some information, this is what I have:
layout.jade:
doctype
html(ng-app)
head
...
0
votes
1answer
19 views
How to access local ENV variables in angular js
Is it possible to access ENV variables from angularjs?
I've got an angular 1.2.8 app being compiled via Brunch.io
It's hosted as a basic node app on heroku. (I do compiling locally; then push)
I've ...
0
votes
1answer
24 views
Redirects from angularjs or express
I have an app where I need to redirect on login depending if the person has been authenticated using Passportjs.
Should I be redirecting using angularjs or express? It seems the latter is more secure ...
1
vote
2answers
33 views
Can angular be used within a jade template?
I am new to both angular and jade. I was wondering if angular can only be used with HTML, or if I could use the same angular call within a jade template? I have only seen angular templates being used ...
0
votes
1answer
32 views
loading jade template through angular
I am working on a single page web app, and I wanted to load in jade views with my angular template but I am struggling to wrap my head exactly how to do so.
Here is my angular template:
index.html
...
0
votes
0answers
27 views
Cannot build and run an application using Yeoman
I have done an application using Angular js and I am trying to build it with yeoman.
I have done the following steps:
npm install -g yo grunt-cli bower
npm install -g generator-angular
yo angular
...
0
votes
0answers
31 views
Nginx config works with angularjs route in HTML5 mode
I am struggling with the nginx config file with angularjs route.
In my case, I have these HTMLs:
index.html
description.html
dashboard.html
The dashboard.html is the one with angularjs code.
Here ...
0
votes
1answer
16 views
Passing NODE_ENV to Angular
I have an Angular, Node based app. It uses Jade for templating. I want to hide or show chunks of my page depending on the NODE_ENV variable that I use to start node with.
Something like this (not ...
0
votes
1answer
39 views
how to load in angularJS page with node
I am working on a single page web app with node/angular and jade. I am fairly new to angular, and I wanted to know what I have to do with my app.js file so that my first page template loads from my ...
0
votes
1answer
24 views
Parsing nested data from select form with Angularjs
I'm trying to parse a model from a form which contain a select(ngOptions) and save it to db but the selected value is never parsed. i'm stuck here can someone help please.
here is my code:
View
...
1
vote
1answer
53 views
How can I clone a window server-side using jQuery?
I am currently running AngularJS server-side using Node.js and jsdom. It's working great, but I'm trying to optimize performance by caching the DOM generated by jsdom before the AngularJS scope is ...
0
votes
1answer
11 views
angular-phonecat application using Node.js error 404 Not Found: /app/index.html
I am running http://docs.angularjs.org/tutorial/step_00
on my windows machine
It was working fine till yesterday.
Today it is giving following error
404 Not Found: /app/index.html
0
votes
1answer
30 views
find multiple documents by the same objectID
I have a documents with the following structure:
the model:
var relationID = Schema({
_id: {type: Schema.Types.ObjectId}
});
var schemaName = Schema({
relations:[relationID],
...
1
vote
1answer
34 views
Bare HTTP calls from Protractor tests
My Protractor tests need some data setup which I would like to implement by making a series of POSTs and PUTs to the running server.
So, the question is: How do you execute "bare" HTTP calls from ...
0
votes
1answer
18 views
How to create and manipulate promises in Protractor?
I want to use the Node Http module to call my server directly in order to set up my Protractor tests. Http is callback based and I want to turn that into promises.
For example, I want to have this ...
0
votes
0answers
25 views
Second controller in Angular not prompting FB login
I have used angular a little before, but this is my first time setting it up.
I am trying to get Firebase Simple Login working with Angular, Node, and Express. My goal is to have it so when a user ...
0
votes
1answer
19 views
Push to array within a model using Mongo/Express/Angular/Node
I have a model called Patients and a model called Drugs. Each patient can be taking multiple drugs.
I'm using ng-repeat to loop through the patients and display. Each patient displays a select box ...
0
votes
1answer
51 views
Is there a way to load partial views from server side when using angular?
I am working on a single page web application and have run into a question for which I cannot seem to find the answer.
Is there a way to load partial views from server side when using angular? I am ...
0
votes
3answers
40 views
$http DELETE turns into OPTIONS AngularJS
When I use put or delete, it turns into OPTIONS. I am using expressjs for my server framework.
Client:
$http({
method: 'DELETE',
url: HTTP_URL + '/update/account',
params: { mail: mail }
...
0
votes
1answer
28 views
angular $locationChangeStart not getting called properly, what do?
I'm working on a MEAN app that is based upon Brian Ford's angular-express-blog app on GitHub.
The problem I'm having is that I need to be able to call my UserService service on $locationChangeStart ...
1
vote
2answers
64 views
Actual use of Jade template and angularjs
I am building a website using nodejs and express. How to make divisions in a page dynamic? Is Jade used for that? if not how to do it?what is angularjs used for? Please help i searched a lot on google ...
1
vote
0answers
25 views
How can I use LiveReload with an AngularJS templateURL
How can I get the templateURL to reload when saved using LiveReload and Grunt?
angular.module('meshApp', [
'ngSanitize',
'ngRoute'
])
.config(function ($routeProvider) {
$routeProvider
...
0
votes
0answers
34 views
Where to use partial templating in express/ nodeJS
I am working on a single page web application for which I am using angularJS, nodeJS, and express. I am trying to figure out how all of the pieces of my design is going to work, but am having trouble ...
0
votes
1answer
47 views
'no method expect' when using Protractor as a library
Using Protractor as a library
Unable to require a reference to Jasmine. Referencing the expect method returns output Cannot call method 'expect' of null.
Code updated to reflect comments:
var ...
1
vote
0answers
36 views
Using Angular and Node Express CSRF with Redis Session, how to reset session info and CSRF after session expiring?
I am running Express and NodeJS as a backend for an angular frontend. I'm using RedisStore for the sessions. Using this blog article, I was able to come up with the following code:
app.use ...
0
votes
1answer
31 views
Typescript for passportjs [closed]
I'm very new to typescript. The idea sounds great and so I want to give it a try and port existing javascript code to typescript. The project I want to port uses nodejs/expressjs and mongoose at the ...
1
vote
0answers
37 views
Angularjs Mongoose image persistance
I'm trying to perform an image persistance into MongoDb database through a form in an angularjs application.
do i have to upload the image and after that perform the save operation to the database ? ...
-2
votes
0answers
40 views
Server side solution for HighCharts and Angular based reporting app [closed]
I'm looking for a reporting solution. and in the process to finalize the technical stack.
The problem is described below..
The Application is running on a Java Stack with Postgres as the Backend.
A ...
-1
votes
0answers
56 views
Looking for some good advice in respect of what server technology to use? [closed]
I am sorry this is not really a technical problem question I just wanted some opinions?
I code heavily in asp.net MVC for work related projects but the more I develop in asp.net the more I think I ...
1
vote
1answer
38 views
Issue with AngularJS tutorial step_02
I have a problem with AngularJS tutorial step_02 on this url.
http://docs.angularjs.org/tutorial/step_02
I have installed nodejs, karma and jasmine on me Ubuntu 12.04 box and can run unit tests
...
1
vote
2answers
66 views
What is the best way to create AngularJS ACL? [closed]
I want to share with you (community) my problem.
I use MEAN stack, so I use Node.js with Express and AngularJS and I have singe app application.
I use passport as an authentication strategy in Node ...
1
vote
1answer
30 views
Jade: Why && is compiled to & when used in angularjs in Jade template?
I am using AngularJS inside the Jade templates with ExpressJS. In my form validation, I have the following line of code in jade template.
div(ng-show="form.username.$dirty && ...
0
votes
2answers
41 views
serving a Single Page Angular App using Restify
I am new to AngularJs and wanted to start learning it. I was going to use Restify as my api/backend and was hoping it was possible to serve static files up for the route /.
app layout is something ...
0
votes
2answers
57 views
HoganJs and AngularJs with NodeJs
We are trying to use NodeJs with HoganJs for server side templating. However we are also wanting to use AngularJs for our client side needs.
The problem is that both HoganJs and AngularJs use "{{" ...
0
votes
1answer
39 views
Angular + Express what's the standard way to indicate an empty db result set?
is returning a null data object to my Angular controller and interrogating it there the correct way to indicate 'no user found' as below? It seems like Mongoose or my own API should at least return ...
0
votes
2answers
59 views
Download text/csv content as files from server in Angular
I am trying to stream a csv file from a node.js server. The server portion is very simple :
server.get('/orders' function(req, res) {
res.setHeader('content-type', 'text/csv');
...
0
votes
0answers
21 views
Angular js + ui codemirror jasmine test case
I have used ui.codemirror directive in my application.I have one functionality of in which If user clicks on any node of a tree.That node should be added to textarea.Codemirror is used to highlight ...
0
votes
1answer
24 views
Connecting to Taffy DB in Nodejs
I am building an application using Angular js,Node js and Taffy DB.
I am trying to store the data submitted from front-end to Taffy DB through Node js server.
var express = require('express');
var ...
0
votes
1answer
29 views
serving an angular directory and subsequently using restful API's to load data when needed with nodesj
I am writing my app and I want to do the following:
On the first request, I serve all the client side code (views, models, controllers, css ...) and subsequently I want to do RESTful api calls to the ...
0
votes
2answers
31 views
web-server.js with apache-like DirectoryIndex behavior
I am using the web-server.js node script to run a webserver on my local machine.
The behavior of web-server.js is to dump a complete file listing if a directory is requested.
instead I would like to ...
0
votes
0answers
47 views
Re-binding an AngularJS app
Presently I'm using NodeJS and JSDOM to pre-render my AngularJS application on my server for Google SEO purposes:
var jsdom = require("jsdom").jsdom
, document = jsdom(template)
// Render Angular ...
2
votes
1answer
61 views
Angular adding a random number to requests for .js files which I do not want
Excuse me if its a trivial thing... I haven't been able to get around this problem.
I would like all my Js files to be cached (I have set the maxAge as one day, as you can see in the code snippet ...
0
votes
1answer
21 views
How to access the Schema.ObjectId to get the objects json on the client using the mean stack?
My Schema looks like:
super.js:
var superSchema = new Schema({
title: {
type: String,
default: '',
trim: true
},
item: [{
type: Schema.ObjectId,
ref: 'Item'
}]
});
...
0
votes
1answer
41 views
Fire AngularJS after loading an Express-routed Partial
i'm still new to AngularJS, and so i encountered a problem that is taking my sleep away ;)...
We have built an app based on node.js and express. The whole routing of the partials is done via Express.
...
0
votes
0answers
41 views
testing angularjs application using casperjs
When testing an Angular application using Casper I found that the binding between inputs and model didn’t seem to be happening when I filled in form fields. I used Casper’s fill method but found that ...
-1
votes
0answers
39 views
Angularjs + jquery: angular fails to work or just throws an error
I am trying to use jquery and angularjs together and maybe it is not a good idea...
html,
<div ng-app='MyTutorialApp' class="app">
<ng-view></ng-view>
</div>
and I want ...