Template for UI Modal found in serve but not after build
Hi there,
I've a strange problem. I've pointed to a modal's template like the following: templateUrl: '/app/subfolder/myModalContent.html',
Now after build I get the following error: Error: [$compile:tpload] Failed to load template: /app/subfolder/myModalContent.html (HTTP status: undefined undefined)
I would be very grateful for any hints.
Thank you very much
You're missing the period for the html extension. On Jan 1, 2016 4:37 PM, "Mirco" [email protected] wrote:
Hi there,
I've a strange problem I've pointed to a modal's template like the following: templateUrl: '/app/subfolder/myModalContenthtml',
Now after build I get the following error: Error: [$compile:tpload] Failed to load template: /app/subfolder/myModalContenthtml (HTTP status: undefined undefined)
I would be very grateful for any hints
Thank you very much
— Reply to this email directly or view it on GitHub https://github.com/Swiip/generator-gulp-angular/issues/970.
It it was so simple. No, the period is there and it works while serving but not after build.
Solved it...as I said, stupid. ;) TemplateUrl should not start with a slash. templateUrl: 'app/subfolder/myModalContent.html',