DEV Community

Tomas Trajan 🇨🇭 for Angular

Posted on • Edited on • Originally published at Medium

4 1

Why And How To Lazy Load Angular Libraries

This article is based on a real life experience from a large enterprise environment with more than 60 SPAs and cca 30 libraries…

Angular libraries are great way to organize code! Angular CLI comes with an amazing built-in support to create, build and test library projects inside of the standard workspace.

What are we going to learn?

  • Taxonomy of the Angular libraries based on their purpose
  • Different ways of implementing library (Angular CLI workspace vs monorepo)
  • Standard lazy loading of the application modules
  • How to NOT lazy load modules from Angular libraries
  • How to DO proper lazy loading of modules from Angular libraries
  • How will this change (for better) with Angular IVY

Read more...

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay