877
questions
1
vote
1
answer
203
views
in angular 16 project when we call REST Api from project it will shows error but when we direct call from POSTMAN or browser it will shows data [duplicate]
angular 16 project service data call
getData() { this.regionService.getAllRegion().subscribe(data => {
this.regionValue = data;
})}
Service Data call rest Api
getAllRegion(): Observable<...
0
votes
1
answer
77
views
Am getting this error. MongoServerError: user is not allowed to do action [remove] on [shoeDatabase.users]
This error is what I find. user is not allowed to do action
MongoServerError: user is not allowed to do action [remove] on [shoeDatabase.users],
import express from "express";
import User ...
0
votes
1
answer
471
views
Could not connect to MongoDb : openidconnect strategy requires an issuer option
im a fresher Nodejs developer,and i have some problems for which i really want to ask you all.
Im trying to setup a MEANJS project base on : meanjs, but there is some error occured unexpectedly on my ...
0
votes
1
answer
278
views
Distinct count of multiple fields values using mongodb aggregation
I'm trying to count distinct values of multiple fields By one MongoDB Aggregation query.
So here's my data:
{
"_id":ObjectID( "617b0dbacda6cbd1a0403f68")
"car_type": &...
0
votes
1
answer
142
views
require function giving error when loading module from models
I am using MEAN stack, I have a file project.js in models directory and it contains schema for my nosql. I am trying to use that module in my controller file Project.js but I am getting error on this:
...
1
vote
0
answers
389
views
Npm install is not working getting bower ECMDERR
I am getting the bellow error while running
npm install
command
bower ECMDERR Failed to execute "git ls-remote --tags --heads
https://github.com/middleout/angular-cryptography.git", exit ...
1
vote
0
answers
312
views
How to store source code samples in MongoDb, so I can display it correctly?
all!
I'm making a website similar to StackOverflow in the MEAN architecture, where users can submit some text, that contains stings of rich text, but can also contain snippets of code.
Currently, I'm ...
1
vote
1
answer
146
views
Why content of middleware is running four times on single request from browser
Why does console.log('First Log') run 4 times per request?
//app.js
const express = require('express');
var app = express();
app.use((req, res, next) => {
console.log('First Log'); // problem ...
0
votes
0
answers
63
views
MEANJS.org folder structure
I've inherited a MEANJS.org project that I need to do, and the folder structure is so complex - I'm really struggling to understand what's going on!
I've attached an image of a standard module's ...
0
votes
0
answers
97
views
How to read registered users list from mean stack server
I would like to be able to read the registered users list from the Mean Stack Mongo DB server and display it on my Web App.
So far, I've only been able to access this list, which is encrypted, ...
0
votes
1
answer
522
views
npm start returning an error
I am having difficulty with an error when I run 'npm start' on my mean.js application. I will paste both the terminal output and the code from the file with the error.
Terminal:
/Users/developer/...
0
votes
1
answer
84
views
For loop issue in MEAN node jS
I am trying to send the response when the loop k value is equal to users[0].employees.length, but it's directly moving forward to max length, how do I solve it
Userlist.find(queryObj).exec(function (...
-1
votes
1
answer
74
views
How to pass parameters from angular4 component to express API
I am working for mean stack application. I am able to connect express api and angular component, but i want to pass parameters to the api service.
Please find the code below for clearer idea,
...
0
votes
1
answer
63
views
Submitting AngularJS form to linked Mongoose model
I'm using mean.js and want to create two form. One for the website and another for website page template.
Website API POST route is /api/websites
Page Template API POST route is /api/websites/:...
0
votes
2
answers
219
views
How can i Bind or copy one input value into another input using of angularjs?
Hi all i am using MEAN stack in my Web portal with AngularJS as my front-end,
In my portal i want to upload user profile image, so i have used uplodcareplatform to upload the images in my portal.
My ...
0
votes
0
answers
151
views
How to fetch input image url to another input using of angularjs?
Hi all i am using MEAN stack in my Web portal with AngularJS as my front-end,
In my portal i want to upload user profile image, so i have used uplodcareplatform to upload the images in my portal.
My ...
0
votes
1
answer
41
views
Gcloud meanjs build failing via docker install
I'm trying to deploy the following container on google cloud app engine using gcloud app deploy, it's the meanjs.org vanilla image. It uses a dockerfile, I'm new to docker and I'm trying to learn it ...
0
votes
0
answers
119
views
How to instantiate angular service with multiple resources?
I have an angular service based on meanjs for rents. Originally it looked like this:
(function () {
'use strict';
angular
.module('rents.services')
.factory('RentsService', RentsService);...
0
votes
1
answer
148
views
Dynamic Column css Based On Window Size AngularJs
This may be answered somewhere, but I am unsure of exact terminology as I am new to web development. I am working with a mean.js app and I have a a container that I am filling:
<div class="...
0
votes
1
answer
72
views
How does control flow from app.start() in MeanJS framework
I am trying to play around with the MEAN framework. I used their scaffolding available here. But I am getting confused on how the control flow happens from the time we start the server.js [node server....
1
vote
2
answers
57
views
How to filter ng-repeat values based on another input ng-model value in angularjs?
repeat values based on another input ng-model value in angularjs?
I have one input value like Social Psychology for this value ng-model is kpcategory
I have used ng-repeat like ng-repeat="question in ...
2
votes
1
answer
4k
views
ReferenceError: number is not defined in MEAN
I am creating CRUD operation in MEAN , i have created dataScehema.js file to defined model
var mongoose = require('mongoose');
var countrySchema = mongoose.Schema({
name: { type: number },
...
1
vote
1
answer
193
views
node js asking browser to reload the page
I want to reload the page after some validations placed at the server side fails.. i have already tried with res.redirect res.location and location.reload() .
I need to place the reloading logic on ...
1
vote
1
answer
3k
views
Why does MongoDB port 27017 need to be opened in AWS EC2 Security Group?
(I've searched SO, AWS support and more widely without success.)
I've just successfully deployed a MEANjs application to a Bitnami MEAN instance on EC2, following Ahmed Haque's excellent tutorial on ...
0
votes
1
answer
51
views
Mongoose fails to update existing document when a field is required
I used MEANjs to create application and added CRUD module using yo generator. Also I registered two users in the application. After that with 'user 1' I created some records. Now I need to allow 'user ...
1
vote
1
answer
82
views
Meanjs Forbidden Error
I am a new bee in AngularJs,below is the policy code created by Meanjs yo generator ,for learning purpose have created a library management system ,The problem what i am facing is when i am testing my ...
0
votes
1
answer
53
views
MeanJS Internal server error 500 when trying to post
I am getting this error in the console when I am trying to insert a new record into the database.
"POST http://localhost:3000/api/task 500 (Internal Server Error)".
Here's the function:
addTask(...
0
votes
1
answer
659
views
Passing the data from the Express API Parameter to Request Module in MEAN Stack
I am facing below issue with passing the parameters from the Express API to Request module URL.
In the below code Suppose I have the request details as
request_data.url = http://localhost:3000/...
0
votes
1
answer
188
views
Angular graphs: grunt-angular-architecture-graph and grunt-angular-modules-graph
I wanted to do an Angular graph for my current project in StackMEAN, and I found this solutions:
https://www.npmjs.com/package/grunt-angular-modules-graph
https://www.npmjs.com/package/grunt-angular-...
0
votes
1
answer
328
views
How to connect to mongodb with authorization in meanjs?
I'm new to meanjs.
My problem is: my local mongodb has username/password, and I can't run meanjs demo successfully.
I git clone https://github.com/Azure-Samples/meanjs.git
And try to run it(npm run ...
0
votes
1
answer
4k
views
Socket IO Live call and Video call (MEAN)
I am working on my Live chat Application (MEAN) . I have successfully completed a chat application ,I am using socket IO in node js. now I want to add a calling feature and also a video calling. what ...
0
votes
1
answer
104
views
MEAN.js' topbar Menu: Using icon/image instead of text for title
I am currently using the meanjs 0.4.2 for my project and i have problem trying to customize the topbar Menu's title.
The menu gets populated for each module within its config file, for example:
...
0
votes
1
answer
3k
views
How to show only time of date in AngularJS?
Hi All How to show only time value in angular js?
My Plunker
I have fetched time value using of ng-repeat, and I just want to show only time value in my portal.
I were tried to fetch time value like &...
1
vote
1
answer
292
views
Failed to instantiate module ngMaterial in mean stack
I am using mean js. am a newbie in angular and mean js .I have replaced angular bootstrap with angular material.
Heres a copy of my bower.json:
{
"name": "meanjs",
"description": "Full-...
0
votes
1
answer
200
views
MEAN-stack app: REST API calls from angular2 frontend to express backend do not work. Error: ERR_CONNECTION_REFUSED
I am building a MEAN stack app, following this tutorial: https://www.youtube.com/watch?v=PFP0oXNNveg&t=3236s
The Problem: I try to do http.get() request from my angular2 frontend to my express ...
0
votes
1
answer
337
views
how to pass object that is passed from html element to a function in parent controller to a controller that is inside the parent controller
I am trying to pass address object that is passed from html element to a function in parent controller(myAppController) to a controller(i.e. DialogController) inside the parent controller. I am ...
0
votes
1
answer
73
views
How to Get the Value Like First Drop Down Value Related to Another Drop Down Value using of Angular JS?
How to get the value like first select drop down value related to another select drop down value using of angular js?
Hi all I have created two drop down fields in MyPlunker and with in the ng-option ...
1
vote
0
answers
32
views
Protractor tests for meanJS admin pages?
Is there a way to create a Protractor test in meanJS for the admin only pages? On this GitHub issue, it explains that you have to modify the database to have an admin user.
Right now, all the example ...
0
votes
1
answer
55
views
How to get values selecting of first drop down values related to second drop down values using angular js?
How to get values one related to another using drop down in angular js?
Hi all I have created two drop down fields in MyPlunker and with in the ng-option I have used filter like filter:{roles: 'kp'} ...
1
vote
2
answers
689
views
How to filter specific role based username in drop down using angularjs?
How to filter specific role based username in drop down using angular js?
Hi all I want to filter KP role username in drop down.
Please look at My plunker for reference.
First I have created all ...
1
vote
2
answers
804
views
Mongodb load collection by ID
Probably something very simple here.
I have 2 mongoDb collections, one (users) with an objectId and the other (listings) which has the userId.
I want to get the documents in the listing collection ...
0
votes
1
answer
336
views
How to bind drop down field value in another input field using meanjs?
How to bind drop down field value in another input field using meanjs.
Hi all Please look at this Plunker i have created,
What I exactly looking is first we select school in plunker then we select ...
0
votes
2
answers
122
views
Get drop down from array of object values using meanjs?
I am trying to get the values as a drop down or select field which were with in the comments array.
I am trying for comments array of object commentText values in the drop down, how can i do this in ...
1
vote
0
answers
22
views
ng-show only for admin and kp in meanjs?
In view.article.view.html i want to show html tag only if the authenticated user is admin or kp. I tried to do so like below, but it did not work.
<p ng-show="vm.authentication.user.roles=='admin',...
0
votes
1
answer
71
views
Unable to show new properties in User schema
I'm working within a MEAN app, and I'm modifying the User module. I modified the User Schema to contain 2 new properties: casetype and Steps. casetype is just a string, and Steps is an array. I ...
0
votes
0
answers
323
views
Nodemailer Email sending not working
I'm trying to send an email from my application. I tried the below code. Can someone please help me where I'm wrong?
When I'm submitting my form, I'm not getting any error. But, I'm not able to get ...
0
votes
1
answer
589
views
How do I show 360 image in a-frame a-scene with custom size?
I have the code like this
HTML
<a-scene embedded>
<a-sky src="modules/core/client/img/images/some.jpg" rotation="0 -130 0"></a-sky>
</a-scene>
CSS
a-scene {
height: ...
1
vote
0
answers
16
views
Use express-load in a modular mean project
I changed my project folder structure to use a modular approach where each functionality is grouped in folders inside "modules" directory (as defined at https://github.com/meanjs/mean).
e.g.:
How ...
1
vote
0
answers
114
views
meanjs running fine in localhost but not in live server
I am using MeanJS[meanjs0.4.2] scaffolding for my web application. My application is running without any error in localhost, whereas in the live site i get the below shown error and empty page is ...
0
votes
1
answer
588
views
How to get with in array values in ng-options using of angularjs?
I am trying to get the values as a drop down or select field which were with in the comments array. I am trying for comments array of commentText value in the drop down, how can i do this in the ng-...