DEV Community

Cover image for Angular Addicts #29: Angular 18.2, implicit libraries, the future is standalone & more
Gergely Szerovay for This is Angular

Posted on • Originally published at angularaddicts.com

Angular Addicts #29: Angular 18.2, implicit libraries, the future is standalone & more

👋Hey fellow Angular Addict

This is the 29th issue of the Angular Addicts Newsletter, a monthly collection of carefully selected Angular resources that caught my attention. (Here are the 28th, 27th and 26th issues)

📢Release announcements

📢 What's new in Angular 18.2?

Angular 18.2, the latest minor version of Angular, was released in August. Cédric Exbrayat covers the key new features:

  • Automatic flush in fakeAsync
  • whenStable helper
  • defaultQueryParamsHandling in router
  • Migration to migrate dependency injection done via the constructor to the inject function
  • Migration to convert standalone components used in routes to be lazy-loaded
  • New diagnostics to catch uncalled functions in event bindings and unused @let declarations
  • Attribute-based loader configuration support in the builder

📢 Nx 19.5 is here! Stackblitz, Bun, Incremental Builds for Vite, Gradle Test Atomizer

The latest minor version of Nx was released last month. Zack DeRose summarizes the new feaures:

  • StackBlitz support
  • Bun and pnpm v9 support
  • Local flaky task detection
  • Project detail view enhancements
  • Pattern support for targetDefaults
  • Individual targets can now opt out of parallelism
  • Support for incremental builds for Vite
  • Project Crystal conversion generators
  • Gradle composite builds support
  • Experimental: Gradle test atomization
  • Experimental: Nx release adds file-based versioning support
  • Support for React 19 (rc) and Angular 18.1

💎Angular Gems of August, 2024

📰Implicit Libraries with Nx: Lightweight Angular Architectures by Convention

Manfred Steyer shows us an architecture where library configurations are derived by an Nx plugin using conventions. With implicit libraries, we can create a new library by creating a folder with an index.ts file.

The idea of implicit libraries comes from Younes Jaaidi's blog post. He also wrote a step by step guide on this topic.

📰Using isolatedModules in Angular 18.2

Angular 18.2 supports TypeScript isolatedModules. This feature may boost production build times. Mark Thompson and Charles Lyding explain how this feature works and how to set it up in an Angular project.

📰The future is standalone!

In Angular 19, standalone: true will be the default setting for components, directives, and pipes. Alex Rickabaugh clarifies that NgModules won't be deprecated, and there will be an automated migration which will:

  • Remove standalone: true for existing standalone components
  • Add standalone: false to existing NgModule components so they continue to work

📰Creating Envless Angular-application

In his article, Maksim Dolgikh explains how to move from hard-coded code for each environment to a universal build that can be used anywhere. He suggests two solutions:

  • Get the configuration from a config server
  • Use Docker and create JSON config files during the Docker image retrieval phase

📰Port a simple React Component to Angular

Chau Tran compares the composition models of React and Angular, explains how to use the Selection and Select components in React Three Fiber, and provides a detailed guide on porting these components from React to Angular.

👨‍💻About the author

My name is Gergely Szerovay, I worked as a data scientist and full-stack developer for many years, and I have been working as frontend tech lead, focusing on Angular based frontend development. As part of my role, I'm constantly following how Angular and the frontend development scene in general is evolving. To share my knowledge, I started the Angular Addicts monthly newsletter and publication in 2022, so that I can send you the best resources I come across each month. Whether you are a seasoned Angular Addict or a beginner, I got you covered. Let me know if you would like to be included as a writer. Let’s learn Angular together! Subscribe here 🔥

Angular has evolved very rapidly over the past few years, and in the past year, with the rise of generative AI, our software development workflows have also evolved rapidly. In order to closely follow the evolution of AI-assisted software development, I decided to start building AI tools in public, and publish my progress on AIBoosted.dev. Join my on this learning journey: Subscribe here 🚀

Follow me on Substack (Angular Addicts), Substack (AIBoosted.dev), Medium, Dev.to, Twitter or LinkedIn to learn more about Angular, and how to build AI apps with AI, Typescript, React and Angular!

🕹️Previous issues

If you missed the previous issues of the newsletter, you can read them here, these are the latest 3 issues:

📨 Submit your Angular resource

Have you found or written an interesting Angular-related article, tweet or other resource lately? Please let me know here in the comments or send me a DM on Twitter! I might feature it in the next Angular Addicts issue!

Top comments (0)