FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.9k stars 140 forks source link

Angular Universal foalts #1002

Closed jonfrusciante closed 2 years ago

jonfrusciante commented 2 years ago

Hi...compliments for the great work. Is possibile to integrate angular Universal ???

kingdun3284 commented 2 years ago

Hi...compliments for the great work. Is possibile to integrate angular Universal ???

Of course it's possible. Basically foalts uses express underhood. All you need is a middleware to filter frontend request to angular's render function.

jonfrusciante commented 2 years ago

@kingdun3284 Could you give me an example??

I'd really appreciate it.

kingdun3284 commented 2 years ago

@kingdun3284 Could you give me an example??

I'd really appreciate it.

Read the readme first: https://www.npmjs.com/package/@nguniversal/express-engine And read this https://foalts.org/docs/upgrade-to-v2/custom-express-instance/ as well.

LoicPoullain commented 2 years ago

Looks like this issue has been answered. I'm closing it 👍