Reputation: 672
I'm currently using angular dart and it's great. The basic set of components are handling a large portion of the requirements.
Some Angular components that I'd love to incorporate into the app only have Typescript versions. Is there a converter or process that allows me to port TS components?
Thanks.
Upvotes: 0
Views: 301
Reputation: 5894
Unfortunately, you can't use Typescript component with Angular Dart, it's like 2 different technology.
You can take a look at the old Typescript to Dart transpiler (https://github.com/dart-archive/ts2dart) but don't know if it still works (it's from the time when Angular Dart was generated from Typescript source).
However, you can reuse CSS/HTML from Typescript component and Angular concept are the same. For simple components you would just have to convert Typescript syntax to Dart syntax.
Upvotes: 1