News/Tech News

Angular 15 arrives with standalone APIs

Published on Nov 19, 2022

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 experimental support for the ESbuild JavaScript bundler has been improved, with experimental support for Sass, SVG templates, file replacement, and ng-watch.

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.

Tech News

Snowflake now supports Python

Snowflake Now Supports Python

Snowflake announced exciting new additions to its platform at Snowday 2022. Snowflake’s single…

Omni Faces 4.0, Java 11 is only minimally dependent while deprecated

OmniFaces 4.0 is only minimally dependent on Java 11 and removes deprecated classes

After almost five years since its last major release, OmniFaces…

Our Latest Blog

Unlock Your Potential with a Level 5 Diploma in Business London's Top Courses img

Unlock Your Potential with a Level 5 Diploma in Business: London’s Top Courses

Are you looking to enhance your knowledge and skills in the field of business? Do...
Read More
Unlock Your Potential with Level 4 Diploma in Business Courses in London img

Unlock Your Potential with Level 4 Diploma in Business Courses in London

Are you looking for a comprehensive course to take your business career to the next...
Read More

Follow Us

Resources

Presentations
Browse LSET presentations to understand interesting…

Explore Now


eBooks
Get complete guides to empower yourself academically…

Explore Now


Infographics
Learn about information technology and business…

Explore Now