You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
How can I do this in new angular universal package like before in
server.ts
file?The text was updated successfully, but these errors were encountered: