Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2024-09-10 16:30:53
Original
1006 people have browsed it

Angular Addicts # Angular 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 ?

Angular の詳細と、AI、Typescript、React、Angular を使用して AI アプリを構築する方法を学ぶには、Substack (Angular Addicts)、Substack (AIBoosted.dev)、Medium、Dev.to、Twitter、または LinkedIn で私をフォローしてください!

?️以前の問題

ニュースレターの前号を見逃した場合は、ここで読むことができます。これらは最新の 3 号です:

  • Angular Addicts #28: Angular 18.1、コンポーネント テスト、SSR ガイドなど
  • Angular Addicts #27: NgRx 18、新しい RFC: DomRef API、Signals を使用した Web ストレージなど
  • Angular Addicts #26: Angular 18、ベスト プラクティス、最近のカンファレンスの記録など

? Angular リソースを送信する

最近、Angular 関連の興味深い記事、ツイート、またはその他のリソースを見つけたり書いたりしましたか?こちらのコメント欄かTwitterのDMでお知らせください!次の Angular Addicts 号で取り上げるかもしれません!

The above is the detailed content of Angular Addicts # Angular implicit libraries, the future is standalone & more. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!