Maarten. (6) [Avatar] Offline
#1
Running ng build --prod on the portofolio project results in compile errors. The reason is that some of the component's constructor params are private, but they are used in the templates. They should be public. This fixes the majority of the errors.

The remaining error is about the total variable in stocks.component.html. Replacing {{total}} with {{pagination.totalItems}} solves that error. This one seems a bit strange to me, since the application's pagination works fine when the app is run with ng serve.

After that I was able to build the project and analyse it with source map explorer.

If you build a project with --verbose=true you'll get to see a lot more information. For example the dead pieces of code that the cli removes from the final package.