How do I convert a Cordova app from Angular Dart 1 to Angular 2?

Issue

I’m upgrading a cordova Angular Dart 1 app to Angular 2.

In angular Dart 1 , I was able to make it work by overwriting ResourceUrlResolver class using a wrapper class like specified here

How can I do the same with angular 2

Solution

It should not be necessary in Angular 2 Dart as templates and CSS are precompiled as part of pub build. Therefore, there’s no more ResourceUrlResolver.

Answered By – Yegor

Answer Checked By – Cary Denson (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *