Answer the question
In order to leave comments, you need to log in
If the client is running angular and the server is running nodejs, where does the user send requests?
Angular on port 3000, nodejs on port 4200. Should the server accept requests and redirect to the appropriate angular routing or does angular accept requests and access the server for data? Something I'm confused...
Answer the question
In order to leave comments, you need to log in
Angular on port 3000
The client requests data, the server responds. Angular client, node server.
On the client
this.http.get('http://localhost:4200/api/items').subscribe(data => {
this.results = data['results'];
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question