The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Maarten. (6) [Avatar] Offline
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.