so I'm a little bit confused about the sequence of actions during build, specifically Angular's AOT compiler and how/where/what it does in the CSR process and which steps happens at the build/server/client.. This is how I understood it so far:
1- Build phase (when ng build): AOT compiler will compile the Angular app into a js code that will be used to render app later by the client and store it (with a copy of the index.html) in the dist/ folder.
2- When the client sends the request, server will simply just send it the contents of /dist that was generated at step 1 as it is.
3- Client will use the js code to render the app (generate page dynamically in index.html, whether eager or lazy etc) at runtime.
So, is my understanding correct? So a new code is basically generated twice (first the renderer is generated at build (as js code) then the actual code?