Specifically by Angular the advantage is to use the same language as it is written.
The biggest advantage is that the language is statically typed (at least on the surface), which makes the code more scalable than dynamic typing. Dynamic typing is for scripts, works well when JS was used to scripts, when they started making applications on it got complicated. Typescript gives more robustness.
And of course the language has more Features, has evolved very fast because it is not a committee language. I do not know what the future of Angular with the advent of Webassembly, may be that many people even opt for a solution that uses neither JS, nor TS, nor Angular.
To see general differences you can consult: Coffeescript, Typescript and Javascript.
The downside is that it’s one more layer, you program in a language that will be converted to another. With the existing tools they managed to do something surprisingly good.
Some time after the answer you can say that everyone is going to Typescript (or leave the entire ecosystem). Some will take longer and will not drop the bone, but it is clear that the type of application that Angular is used TS is much better, even if you can still use JS. The same goes for Vue and React, as these took longer to support TS, the adoption is slower.
For me this goes from each one, I enjoyed the
TypeScript
, for me is nothing more than aJavascript
improved!– Marconi
Possible duplicate of Coffeescript, Typescript and Javascript
– NoobSaibot
@Noobsaibot had already seen this question but I found it too comprehensive, I would like something more specific
– Costamilam
At the end of the day, everything becomes Javascript rsrs
– NoobSaibot
I don’t really see much point in using a language that, as you said yourself, is javascript at the end, but if to be able to do something cool with Angular + JS I have to spend a week smashing my head and with TS I do in a few minutes, ends up being a necessity
– Costamilam
That question of yours is actually pretty easy to answer. Try to make a feature in an application using Angular, React, Vue, etc... applying the object orientation paradigm with Typescript and then the same functionality using Vanila.
– LeAndrade
The typescript and so additional Features on typescript for example vc can use any anywhere and would be pretty much the same thing as js.
– Eduardo Vargas
@Eduardovargas and if use, better not do :)
– Maniero