typeahead-popup-template-url with webpack
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.
Angular: 1.6.2 angular-ui-bootstrap: 2.5.0
Best regards
Source: angular-ui/bootstrap