Questions tagged [meanjs]

MEAN.JS is a full-stack JavaScript solution for building web applications using MongoDB, Express, AngularJS, and Node.js.

MEAN.JS is a full-stack JavaScript open-source solution, which provides a solid starting point for MongoDB, Node.js, Express, and AngularJS based applications. The idea is to solve the common issues with connecting those frameworks, build a robust framework to support daily development needs, and help developers use better practices while working with popular JavaScript components.


Documentation :

Related Tags for the used applications:

  • The database itself
  • The interface from express to the database.
  • web application network
  • other tag for the same web application network
  • the web frontend in the version 1.x.x
  • the javascript framework to develop and publish.
877 questions
5
votes
1 answer

Calling a static function returns 'Is not a function'

I'm working on a mean.js stack application. When I attempt to call a static function of one of my models I'm getting the error 'SomeItem.createNew is not a function' I am calling this static method from another static method of a different schema,…
Sean
  • 2,106
  • 2
  • 16
  • 24
5
votes
0 answers

Office365 App for Excel Web: "Value cannot be null. Parameter name: conversationId"

I have developed an Office 365 app using MEAN-JS - ie Express and Node.js. It runs fine on Excel Desktop environment, but when running on Excel's Web App environment I am getting this error while the app is loading into the…
jm__
  • 112
  • 1
  • 4
5
votes
1 answer

DivergentArrayError in mongoose while updating array of referenced docs

I have a schema defined in mongoose as follow: var VolunteerSchema = new Schema ({ ...... other fields ..... preferLocations:[{ type: Schema.ObjectId, ref: 'Location' }] ..... }); I am using volunteer.save() method to update the…
bring2dip
  • 886
  • 2
  • 11
  • 22
5
votes
4 answers

Adding a picture to the MEAN.JS sample with Angular-file-upload

I am using MEAN.JS (https://github.com/meanjs/mean) and angular-file-upload (https://github.com/danialfarid/angular-file-upload). The "Article" sample provided by MEAN.JS contains two fields named "title" and "content". I want to modify that and…
Xavier M
  • 547
  • 3
  • 6
  • 13
5
votes
3 answers

where should I add module dependencies in mean.js (for ng-sortable)

I am trying to add ng-sortable to my mean.js based app. https://github.com/a5hik/ng-sortable Following the install instructions and adapting them to mean.js I included the js and css files (which are loading correctly), but where I fall down is…
Finglish
  • 9,692
  • 14
  • 70
  • 114
5
votes
2 answers

AngularJS - Best Way to Handle State on Manually Entered URLs

I currently have a set-up based on the meanjs stack boilerplate where I can have users logged in this state of being 'logged-in' stays as I navigate the URLs of the site. This is due to holding the user object in a Service which becomes globally…
iQ.
  • 3,811
  • 6
  • 38
  • 57
4
votes
2 answers

Retrieve sessions list from sessionStore and destroy user previous sessions NodeJS

I need to retrieve a list sessions from sessionStore(MongoStore) and delete previous login session. I am using express-session to store sessions in DB. var userId = req.query.userid; if (!userId) return res.status(400).send({ message:…
Zaid Iqbal
  • 1,662
  • 5
  • 25
  • 45
4
votes
2 answers

how do I log the specs when the tests are successful in Jasmine?

As, mocha logs the specs string if the test is successful. for the below test suite, describe("capitalize", function() { it("capitalizes single words", function() { /* … */}); it("makes the rest of the string lowercase", function() { …
Vickar
  • 923
  • 11
  • 16
4
votes
1 answer

meanjs generator not working with yeoman?

I am learning meanjs stack and try to generate an app with the meanjs generator. But I have some errors. I type in command line : yo meanjs I have the following errors : You're using the official MEAN.JS generator. ? What mean.js version would you…
Pracede
  • 4,226
  • 16
  • 65
  • 110
4
votes
1 answer

NodeJS logout all user sessions

I'm interesting to close (logout/sign out) all the user sessions in nodeJS. req.logout() is closing only the current session of the user. But for my security panel I want to add the option to close ALL the user sessions. How can I do this? I'm…
Aral Roca
  • 5,442
  • 8
  • 47
  • 78
4
votes
1 answer

Grunt stops outputting information after starting the node debug server

My problem is similar to this: Grunt won't load the node server However, the answers do not solve the problem in my case. Here is my gruntfile: 'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { …
Jay M
  • 259
  • 3
  • 15
4
votes
1 answer

Angular.js Directive templateUrl not found on Mean.js stack

I've created my first directive in Angular running on the mean.js 0.4-dev stack vertical project file structure which I auto generated with Yeoman. The directive compiles correctly when I use the 'template:' property however when I try to move the…
Kim George
  • 81
  • 8
4
votes
2 answers

MEAN.js Social Sharing?

So I built an app using MEAN.js, and I made some updates to the Articles (blog) section for better SEO, readability, design, etc. One problem I can't seem to figure out, though, is how to share the Articles using Facebook, Google+, Twitter, etc. and…
aikorei
  • 570
  • 1
  • 7
  • 23
4
votes
2 answers

AngularJS: get filtered ng-repeat result count to update my pagination

My code explained: Below is a simple table with an ng-repeat that loops through ctrl.persons, and stores the results in the variable ctrl.results. There is a filter included that allows a user to search the results using a text input, and…
Tom
  • 734
  • 2
  • 7
  • 27
4
votes
1 answer

Meanjs unable to save image into nested schema

my Meanjs app is supposed to upload a logo into a nested schema, within my UserSchema. I am able to successfully upload the file, as I am able to store a profile photo for the user successfully. But when I am trying to save an image into the nested…
kvnam
  • 1,285
  • 2
  • 19
  • 34
1 2
3
58 59