Ng-News: Issue 22/09

This is a weekly posting, covering the latest updates from the Angular community.

TypeScript 4.6

TypeScript 4.6 was released. One of the main additions was the support for ES2022.

It extends an Array with an at method, which allows us …


This content originally appeared on DEV Community and was authored by DEV Community

This is a weekly posting, covering the latest updates from the Angular community.

TypeScript 4.6

TypeScript 4.6 was released. One of the main additions was the support for ES2022.

It extends an Array with an at method, which allows us to access the last element directly.

Array.at

Another addition is that the Error object has a cause property that can be another error object. This is very useful when you want to rethrow an error.

Error.cause

And finally, we have support for private properties and methods. Be aware of the difference between TypeScript's private keyword and the equivalent # symbol in Ecmascript. The private keyword is only valid for the compilation. If you also want to have private access scope during the runtime, you need to use the # keyword instead.

Image description

https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/

Video Sessions

With "State of Angular" and "Angular Gaming Stream", we had two video sessions where members of the Angular team answered questions.

One interesting point was that Jeremy Elbourn explained why Angular does not replace Karma with more popular alternatives like Jest. According to Jeremy, Jest, but also a little bit of Cypress, do not run their tests in a real browser environment.

This improves the developer experience but reduces the fidelity. Google prefers fidelity in this particular case.

Miscellaneous

Introduction into Playwright

Tim Deschryver wrote an introduction into Playwright, which is, like Cypress, a framework for E2E tests.

https://timdeschryver.dev/blog/writing-your-first-playwright-test

Angular & Vite

Brandon Roberts, did a video about Vite and its potential integration into Angular. Vite is an alternative to webpack and is known for its speed.

New Releases

Chrome 99: https://developer.chrome.com/blog/new-in-chrome-99/


This content originally appeared on DEV Community and was authored by DEV Community


Print Share Comment Cite Upload Translate Updates
APA

DEV Community | Sciencx (2022-03-07T20:19:04+00:00) Ng-News: Issue 22/09. Retrieved from https://www.scien.cx/2022/03/07/ng-news-issue-22-09/

MLA
" » Ng-News: Issue 22/09." DEV Community | Sciencx - Monday March 7, 2022, https://www.scien.cx/2022/03/07/ng-news-issue-22-09/
HARVARD
DEV Community | Sciencx Monday March 7, 2022 » Ng-News: Issue 22/09., viewed ,<https://www.scien.cx/2022/03/07/ng-news-issue-22-09/>
VANCOUVER
DEV Community | Sciencx - » Ng-News: Issue 22/09. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/07/ng-news-issue-22-09/
CHICAGO
" » Ng-News: Issue 22/09." DEV Community | Sciencx - Accessed . https://www.scien.cx/2022/03/07/ng-news-issue-22-09/
IEEE
" » Ng-News: Issue 22/09." DEV Community | Sciencx [Online]. Available: https://www.scien.cx/2022/03/07/ng-news-issue-22-09/. [Accessed: ]
rf:citation
» Ng-News: Issue 22/09 | DEV Community | Sciencx | https://www.scien.cx/2022/03/07/ng-news-issue-22-09/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.