使用Angular.dart的移动Web应用程序

时间:2014-11-11 17:57:47

标签: cordova mobile dart angular-dart

我有一个使用AngularDart构建的Web应用程序。现在我想将它转换为使用Cordova的移动Web应用程序(因此它将适用于Android和iPhone)。

我已经克隆了官方的angularDart教程并将第2章移到了Cordova。我收到这个错误:

Bad state: Cannot use origin without a scheme: file:///home/cinan/dartdevelopment/test2/platforms/browser/www/index.html

主要问题是应用程序不是从http:// ...位置运行而是从file:// ... AngularDart应用程序如何作为移动Web应用程序运行?

我正在运行Dart 1.7 SDK和AngularDart 1.0。

更新

这看起来像是一个近期的解决方案:https://github.com/angular/angular.dart/pull/1557

0 个答案:

没有答案