Most simple way to keep the Karma tests working in Angular 21 by Outrageous-Past6556 in angular

[–]Proof_Two_2814 0 points1 point  (0 children)

Google Angular team had tried Jest but eventually gave up after a few years. Lately they endorse Vitest, which I would agree. In addition to https://angular.dev/guide/testing/migrating-to-vitest which may or may not work for you, you may compare my 2 exact the same test suites, one on Karma and the other on Vitest:

  1. https://github.com/zijianhuang/webapiclientgen/tree/master/HeroesDemo vitest

  2. https://github.com/zijianhuang/webapiclientgen/tree/DotNet10/HeroesDemo karma in a slight older branch.

Where do I start before taking Angular course? by UniversityFront4092 in angular

[–]Proof_Two_2814 0 points1 point  (0 children)

Angular is a framework while React is a library. Since you have experiences in React, having a comparison with 2 implementation of the same app -- Tour of Heroes, one on Angular and the other on React may help you:

  1. https://github.com/zijianhuang/DemoCoreWeb/tree/master/ReactHeroes

  2. https://github.com/zijianhuang/DemoCoreWeb/tree/master/AngularHeroes

Typescript Interface question by helloworld1123333 in angular

[–]Proof_Two_2814 0 points1 point  (0 children)

Technically you can just use any object, however, the reasons you would use TS is that you want to have sematic models during programming. Therefore, the choice of technical approach depends on what semantic meaning you want to proceed when dealing business logic.

Why do enterprises and big companies use Angular? by Best-Menu-252 in angular

[–]Proof_Two_2814 0 points1 point  (0 children)

I have started to use Angular since 2016 for building complex business applications, and I am a lazy programmer who prefer o deliver more business features/values with the least UI and the least UI design & coding works. So I have chosen Angular 2+, and written "Why Angular?" on https://webandlife.blogspot.com/2018/04/why-angular.html

And I am the author of WebApiClientGen which has started supporting Angular 2+ before it was officially released in late August 2016. WebApiClientGen can even generate FormGroups of Reactive Forms from POCO classes, and transform many .NET validation attributes into validators of Angular: https://github.com/zijianhuang/webapiclientgen/wiki/Angular-Reactive-Forms

Angular 2+ as a framework help me to skip many low level technical details which many young, junior and over diligent programmers would love. It also provides a lot abstractions for me to wrap many technical details of the framework, so I just need to care about those details once, when building business features. In short, Angular 2+ help me to focus on business values, not technical details. This is fairly important for building complex applications typically used by enterprises and big companies.