angular.dart icon indicating copy to clipboard operation
angular.dart copied to clipboard

Breaking: Template Urls should not start with '/'

Open jrote1 opened this issue 9 years ago • 2 comments

In 1.1.1 template urls were changed from: packages/app/modules/main_component.html to: /packages/app/modules/main_component.html

This is a breaking change and should be changed to not start with '/' by default this has broken my app and most likely other peoples as well. Should be fixed urgently. The commit that introduced this by the looks of it is @73b4153fad623a01eac25bd6f9a6b3489f2f5cd6

jrote1 avatar Apr 07 '15 10:04 jrote1

@vicb Is anyone still checking on this version of angular?

jrote1 avatar Aug 28 '15 08:08 jrote1

Sorry can I get more context into this? I tried to reproduce it for a couple hours and got nowhere. I tried a small use case and I can't get it to rewrite in this way.

Some other notes: a) If you don't care about type relative URIs I would suggest setting this config: bind( ResourceResolverConfig, toValue: new ResourceResolverConfig.resolveRelativeUrls(false)); This is going to leave the URIs unchanged. b) If you can I would switch to type relative URIs they are really nice to work with. example c) Try turning on template cache for production by adding generate_template_cache: true to your angular2 transformer. d) The packages symlink is actually going away in a future version of dart eventually, but currently pub serve and the transformers understand them.

TedSander avatar Sep 03 '15 03:09 TedSander