Answer the question
In order to leave comments, you need to log in
What are the interaction methods between Angular 2 and Express?
Hello, I created a server on NodeJs, express. Everything is stored in the server folder (server/app.js) , then I created a folder and an application in Angular (ng new client). How can you link them?
On react, I did a bunch through webpack and webpack-dev-middleware. After starting the server, the client itself was launched and interacted with the api. With angular how to do this correctly? I'm a beginner, don't scold me much, I googled and they do it differently everywhere, I even prescribed statics but nothing ..
app.js
app.use(express.static(path.join(__dirname, '/../client/src')));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question