angular / angular.io

Website for the Angular project (see github.com/angular/angular for the project repo)
https://angular.io
MIT License
1.03k stars 880 forks source link

angular.js:13920 Error: loading directive templates asynchronously is not supported #3513

Open rickhopkins opened 7 years ago

rickhopkins commented 7 years ago

It'd be nice if this was in the documentation. All my angular 1 directives used templateUrl. We're trying to go through the upgrade and when using ng1 directives they fail because of this.

http://stackoverflow.com/questions/41348403/ngupgrade-unable-to-use-templateurl-when-upgrading-angular1-components

HampusLilja commented 6 years ago

This issue is a little bit of a showstopper for us. Is UpgradeComponent from @angular/upgrade/static supposed to work with angularjs components with templateUrl? If so, is there a time frame in which we can expect it to work?

asednev commented 6 years ago

template cache can be used as a workaround for this issue, see https://docs.angularjs.org/api/ng/service/$templateCache