Skip to main content

All Questions

Tagged with
1 vote
1 answer
114 views

How to make protected route work in node.js

I'm working on a MEAN stack application. Where the user logs in using google oauth so i created a google oauth middleware as a function and linked it in server.js like app.use('/protected',...
Gowri Shankar's user avatar
1 vote
0 answers
20 views

Nodejs Serving 2 Angular Apps Share Single Route

I have a nodeJS server hosting two static angular apps. One of the apps, lets say app1, is default with a baseHref:'/' and another app, app2 with a baseHref:'/square/'. Although they are separate apps ...
coder123's user avatar
  • 291
2 votes
1 answer
504 views

Combining backend (Express) and frontend (Angular) routes

I want to host the Angular app and its backend in one host (I am not sure if this is a good idea!). I created a web folder in a NodeJS (express) app and moved the angular deployed file there. ...
Mironline's user avatar
  • 2,809
1 vote
1 answer
53 views

How to Setup Angular Routing URL Prepending?

I have an Angular 14 application setup with Node and am trying to seperate user and admin space. An example for this would be google.com, then cloud.google.com and console.cloud.google.com. How would ...
julsmzr's user avatar
  • 21
0 votes
2 answers
1k views

Angular 12 sub routes 404 loosing context on refresh

I am having problem with angular 12 sub routes. I can navigate to the sub routes just fine but when I refresh the page I lose context. I am running it locally on the localhost:4200 here is the image ...
Stanislav Mozolevskiy's user avatar
0 votes
0 answers
93 views

Angular routes for blog based on title

I'm trying to build a blog with Angular + Angular Universal because I want it to be server-side rendered (SEO reasons) and NodeJS. The posts will be fetched from API, the problem now is routing, ...
Patricios's user avatar
0 votes
0 answers
58 views

Create a part of `Express` Web application as an `Angular` app

In the past few weeks I've setup a small website using Node and Express. The routing is done via express and the website consists of the root route as (http://localhost:3000/) and some sub routes like ...
Mischa Binder's user avatar
1 vote
1 answer
157 views

Angular 9 - Sharing Data Between Routes

I'd like to share data between routes, instead of getting it from the API on each component load. Repo: https://github.com/theADAMJR/2PG-Dashboard Currently when a user loads a /dashboard/:id/... ...
ADAMJR's user avatar
  • 2,828
1 vote
1 answer
394 views

MongoDB - Saving sub category details

I would like to know how can I save my product details(sub category) inside an order details. As for now, MongoDB only saves the ID of the product, without its details. Order Schema: const ...
moses's user avatar
  • 191
0 votes
0 answers
287 views

find by category in array object not working in Angular frontend

I'm trying to build a blog application using Angular on frontend with node, express in the backend and mongodb as database. Now I'm trying to make a component called blog-categories where there should ...
chatterjeetridib's user avatar
1 vote
1 answer
1k views

edit by id is not working in Angular although the route that is getting passed is correct

I want to edit and show value in form when user is editing but its not working. Angular frontend is capturing the correct route but data is not getting fetched from backend and no api is getting ...
chatterjeetridib's user avatar
0 votes
1 answer
236 views

Angular get blog by id not displaying anything on browser

I'm building a blog application based on MEAN stack, using Angular in front-end, node in back-end and mongoDB for server. When I'm trying to access a particular blog by it's blogId, the browser is not ...
chatterjeetridib's user avatar
3 votes
1 answer
177 views

secure an angular route more safely than with routeguard?

I have to create a SPA with Angular 8. In the SPA I will have a component with a form that can only be seen if the user has permissions. For this I had planned to use a route guard, the problem is ...
RangerCode's user avatar
0 votes
1 answer
167 views

Updating parameters in route Angular

I have a route with two parameters in it and Im trying to update it (just the url, forget about the content of the component, also I dont want to refresh the page or anything, just update the route) ...
MWPodgorni's user avatar
3 votes
2 answers
4k views

make nodejs manage to serve static angular pages after deploy

Newbie to nodejs. I have a an API folder - whenever the server get an API request - it should execute the function binded to that route. However - whenever there is a non-API request, I want the ...
Guy E's user avatar
  • 1,927

15 30 50 per page