generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

Template for UI Modal found in serve but not after build

Open m1rc0 opened this issue 10 years ago • 3 comments

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

m1rc0 avatar Jan 01 '16 22:01 m1rc0

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.

busches avatar Jan 01 '16 22:01 busches

It it was so simple. No, the period is there and it works while serving but not after build.

m1rc0 avatar Jan 02 '16 07:01 m1rc0

Solved it...as I said, stupid. ;) TemplateUrl should not start with a slash. templateUrl: 'app/subfolder/myModalContent.html',

m1rc0 avatar Jan 02 '16 13:01 m1rc0