Challenge Overview
Project Background
Angular uses two modes that generate optimized JavaScript from HTML and TypeScript - one as Just-In-Time (JIT) (which works inside the browsers) while the other is Ahead-of-Time (AOT) that produces JS at build time. AOT is faster because you do not need to download the compiler to support JIT, and the parse & compiler process are pre-done at build time, delivering pre-compiled templates to the browser.
Technology Stack
- Target Environment - Angular
Individual requirements
In this challenge, you are required to explore ideas on how to run the AOT compiler dynamically on a NodeJS server (that we are also using for Server Side Rendering (SSR) - Universal Angular).
You should write a document including the following contentsHow to serve dynamic content using AOT
The idea is to leverage the NodeJS server used for SSR to ALSO AoT render the dynamic templates before sending the compiled DOM/JS/Metadata to the browser to be stitched in where necessary. This would allow us to publish new html fragments (partials / templates ) for our angular components and have them pulled through the NodeJS AOT processor on demand, so it is not really AOT, but rather JIT but on the server so we do not deliver the angular compiler to the browser.
- If you have questions/ doubts about the overall objectives, please feel free to ask in the challenge forums.
- You are allowed to refer to open-source Git repos/ public links which achieve the mentioned objectives
Review
All submissions will be subjectively evaluated on a scale of 1-10 based on the level of details provided. There will be no appeals or appeals response for this challenge.
Final Submission Guidelines
What To Submit
- A well-formatted documentation (in .md/.pdf/.docx, at least 2 pages long) highlighting your research on the above.
- Providing a working sample with your approach would definitely help
- Feel free to provide a video walking through your approach/ working sample