Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Relative url with templateUrl not work with bundle file

$
0
0

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.ts

what is the library that ionic use to make this bundle file ?
any suggestions to solve this problem

sorry for my bad english
thanks in advance .


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>