@bahgat wrote:
hi,
how to use relative url with templateUrl
i already put moduleId: module.id
but it doesn't work when use ionic serve
when i debug the bundle file i find the problem in this line
var sourceAbsUrl = this._urlResolver.resolve(directiveType.moduleUrl, template.templateUrl);
because
directiveType.moduleUrl == "package:5.js"
and template.templateUrl == "app.html"and when do debugging without bundle file i found the same line
var sourceAbsUrl = this._urlResolver.resolve(directiveType.moduleUrl, template.templateUrl);
but
directiveType.moduleUrl =="http://localhost:63342/MyIonic2Project/www/app/app.js"
and template.templateUrl == "app.html"this line of code is from angular2 path
node_modules/angular2/src/compiler/angular2/src/compiler/template_normalizer.tswhat is the library that ionic use to make this bundle file ?
any suggestions to solve this problemsorry for my bad english
thanks in advance .
Posts: 2
Participants: 1