Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Universal server API requesting #1019

Closed
ghost opened this issue Jun 10, 2018 · 2 comments
Closed

Angular Universal server API requesting #1019

ghost opened this issue Jun 10, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 10, 2018

I just migrated my application to Angular 6 + Universal. It`s great but I have 2 issues to fix. Please help me for both ones:

1- How can I run the Angular Universal app in --watch mode for developing time? Before that I opened two terminal. In one of them, I wrote command: nodemon server.js and in another on : ng build --watch. In this situation I was developing my application fast by real-time editing.

But now after each edit I use command npm run build:ssr. I takes lots of time. There should be another way for increase developing time in Angular Universal?!

2- The other issue is before I migrate to Angular Universal, I was using express to for server side same as now. I have called an API handler file like this:

const api = require('./routes/api');
app.use('/api', api);

How can I do this in new angular universal package like before in server.ts file?

@CaerusKaru
Copy link
Member

1 is #1022. 2 can be best handled on a support forum like Stack Overflow or Gitter.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant