i working on an AngularJS/Symfony project and I cant figure out how to define correctly the path of a twig template in my js.
The path to: -the original JS -the template -the JS path with assetic
...
+-src/
| +-MyCompany/
| +-MyBundle/
| +-Resources/
| +-public/
| +-js/
| +-directive/
| +-my_file.js
| +-view/
| +-template/
| my_template.html.twig
+-web/
| bundles/
| +-MyBundle/
| +-js/
| +-my_fil.js
...
My js code:
return {
templateUrl: '?'
}
So, is there a way to include a path from a bundle into an asset file? (I tried the @bundle/ notation, but didnt work). Or, when I include the js in my html, to use the js of the bundle and not the one of the asset?
Thanks