With the new standalone APIs, now released from developer preview, Angular developers are able to develop applications without using NgModules.
The latest version of Angular 15, a TypeScript-based web application framework developed by Google, has just been released. Among the features of the update are new, stable “standalone” APIs that enable developers to build applications without the use of NgModules.
The official launch of Angular 15 took place on November 16. A single component can be used to bootstrap an application using the standalone APIs introduced as a developer preview in Angular 14 in June. They can be used in HttpClient, Angular Elements, routers, and other applications. These standalone components are intended to simplify development and serve as an alternative to NgModules, a way of managing dependencies that many developers viewed as unnecessarily complex.
Additionally, Angular 15 introduces a new API for directive composition that is intended to facilitate code reuse. It enhances host elements with directives and integrates Angular with a code reuse strategy. In a new image directive, now in beta, features are added such as automatic srcset generation, resulting in an image that is appropriately sized, and an experimental fill mode, which causes an image to fill its parent container without the need to declare its height and width. A standalone NgOptimizedImage can be used directly in a component or NgModule.
You can find instructions for getting started with Angular on GitHub.
The following features and enhancements are also included in Angular 15:
Stack traces have been improved for debugging purposes.
The Material Design Components for Web (MDC) are now stable.
Support for range selection in the slider and the ability to customize component density.
In the Component Dev Kit (CDK), there is a CDK listbox primitive.
The Angular CLI allows you to create a standalone component by using the command ng g component – standalone. As well, the output of ng new has been simplified by removing test.ts, polyfills.ts, and environments in order to simplify the configuration process.
The default formatting configuration for DatePipe can be changed globally by developers.
A language service can now automatically import components that are being used in a template, but have not yet been added to a standalone component or NgModule.
Angular’s future plans include improvements to the server-side rendering pipeline, reactivity, and quality-of-life.
Snowflake Now Supports Python
Snowflake announced exciting new additions to its platform at Snowday 2022. Snowflake’s single…
OmniFaces 4.0 is only minimally dependent on Java 11 and removes deprecated classes
After almost five years since its last major release, OmniFaces…