Похожие чаты

The decorators in Angular does not follow the TS standard,

which wasn't even finalized when Angular was made. This means Angular in its entirety can break if TS or ES defines decorators in a different way

The dependency injection of Angular is magic that TS itself cannot do. The Angular compiler looks through the constructor and figures out what types it wants and somehow includes that in the build files. There is no JS that can figure out what types a function wants.

Having it so extremely class based is very cumbersome. Have a function that formats a string? Too bad. Wrap it in a pipe class to use it. That pipe class in turn has to be included in an angular module. In React you just use the function; no need for a wrapper. Have a value you want to use? Import it, put it in your class, then you can use it. In React you just use the value without a wrapper.

The "HTML" is not HTML, even though it is stored in HTML files. It's pseudo-HTML. The files should be marked as such, with .ahtml or something.

The module system in Angular is completely unnecessary. ES already has a module system that provides far better traceability than what the Angular modules do

2 ответов

11 просмотров

I would love to know how Angular decorators do not follow TS standards. Dependency injection is a framework feature, not TS. else what would be the purpose of the framework? The same way we have magic in react or other frameworks. It is not magic also, it uses tokens which can be inferred from type, class serialization, explicit string e.t.c One can use functions, no need to wrap them. Pipe are special type of helpers that are used to transform data in template expressions. It is just an available option that one does not need to use as they can transform the data outside the view. HTML is not HTML - It starts as pure HTML, not like React or it's cousins. If you want pure html, then I don't understand you even need a framework.

and module systems is optional nowadays as we have standalone components

Похожие вопросы

Обсуждают сегодня

30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
5
читать файл максимально быстро? странный вопрос))
zamtmn
53
братва! где куличи брать?
Alöscha
25
тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
📢Join the FUNToken X Pamtoken Zealy Campaign - Let the Quest Begin!🔥 📢Attention, FUNToken Community! We're excited to announce the launch of our Zealy Campaign in collaborat...
OJohnny
7
Добрый день. Созданию отношения таблиц для учёта кораблей, их движения между точками (портами) согласно расписания. Терзают сомнения в правильном ли направлении двигаюсь 😅 1...
Aleksey
1
Is FXTL another frax ecosystem token? Why need fxtl when there is already fxs? Why cant I find a straight answer for this? Maybe thats why people think its all so complicated
MBD Tan
11
Компания Elif ищет менеджера проектов, который будет заниматься поиском и ведением новых проектов. Прежде чем приступить к работе, вам нужно пройти наш недельный курс, где вы ...
Elif
1
Hi guys , do we have update on voting?
HB
16
Карта сайта