angular-universal

How to deploy angular universal on Plesk panel (apache)

百般思念 提交于 2020-12-15 06:51:12
问题 I have problem with running Angular Universal on my Plesk panel (apache): already i insalled nodejs : i do npm run build:ssr on my localhost and copy the dist from localhost to httpdocs directory on plesk. copied package.json on httpdocs directory; in this step what i should do ? I clicked on Run script in my Plesk and try to run serve:ssr , but nothing happens. 回答1: -make sure in your "Document Root" to choose the browser folder in dist. -in your server.ts REMOVE this if condition: if

Angular Universal - timeout should not be used

痴心易碎 提交于 2020-12-13 04:47:05
问题 so I have been trying to convert my application into angular universal, and for the most part it has been fine. But I read some "gotchas" earlier: https://github.com/onespeed-articles/angular-universal-gotchas It suggests that I should not be using timeout which is annoying, because in angularjs you used it to make things fire after a view was rendered so you could be sure that dimensions of elements were correct, etc. I have also read that it still persists in angular 6 so I have this