Похожие чаты

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 ответов

21 просмотр

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

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

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

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
9
Карта сайта