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

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

Open rickhopkins opened this issue 7 years ago • 2 comments

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

rickhopkins avatar Apr 05 '17 17:04 rickhopkins

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?

HampusLilja avatar Oct 25 '17 12:10 HampusLilja

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

asednev avatar Nov 18 '17 00:11 asednev