Table of content
Feature | Description |
---|---|
Standalone components | |
Typed Angular Forms | |
inject | a new function to inject dependencies |
Standalone Directives/Components/Pipes
Typed Angular Forms
Define title
in router
You can specify the title of a page in the router configuration now.
1 | const routes: Routes = [ |
Use TitleStrategy
to set the title in the browser tab for complex scenarios.
1 | () |
Target TypeScript 4.7 and ES2020
Bind to protected component members.
Start form Angular 14, you can bind protected properties in component class to your template.
1 | ({ |
Optional injectors in Embedded Views
What’s Embedded views? Need further research.
1 | viewContainer.createEmbeddedView(templateRef, context, { |
New CLI commands
1 | ng completion |
Experimental ESM Application build
Update the build config in angular.json
to use the new esbuild builder.
1 | "builder": "@angular-devkit/build-angular:browser" |
inject functions
The new inject
function in Angular 14 is a new way to inject dependencies into your components.
Reference
https://blog.angular.dev/angular-v14-is-now-available-391a6db736af