#6494·bootstrap

typeahead-popup-template-url with webpack

Author: randspyCreated Mar 14, 2017Updated Sep 20, 2018

Hello.

I am migrating an angular (1.6.2) app from gulp to webpack 2. I am using angular-ui-bootstrap with typeahead-popup-template-url attribute. It looks like

typeahead-popup-template-url="app/somePathHere/custom-popup.html"

How can I use it with webpack? I am getting an error message :

Error: [$compile:tpload] Failed to load template: app/somePathHere/custom-popup.html

I don't think it is a matter of path. Tried all combinations I could think of. Plus when I migrate angular components I replace

templateUrl : 'app/somePathHere/some-component.html',

with

template : require('./some-component.html'),

Could it be something similar? Is there a special syntax? I was not able to find anything on internet. And no response on stack overflow.

http://stackoverflow.com/questions/42721983/custom-template-typeahead-popup-template-url-with-webpack

Angular: 1.6.2 angular-ui-bootstrap: 2.5.0

Best regards