Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
0

Ng-News 26/13: @Service, Native Federation, Angular Feature Lifecycles

DEV Community·ng-news·27 days ago
#21GKVqsK
Reading 0:00
15s threshold

Angular 22's proposed @Service decorator and the likely stabilization of the resource API family . Also in brief: Angular feature lifecycle stages, Native Federation v4 changes, and fresh Oxc Angular compiler benchmark context. Angular 22 preview: @Service and resource APIs The release of Angular 22 comes closer, and we are also getting more and more information about the changes. For example, we will get a new decorator for services, which will also be called @Service . What's the difference compared with the existing @Injectable decorator? By default, @Service will automatically provide the service in root, and you cannot use constructor-based dependency injection anymore, but have to go via the inject function. And another PR, which is still open, says the resource family, including httpResource , but also rxResource , will leave the experimental stage and become stable. So the developer preview gets skipped.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More