0
我在一個AngularJS/Symfony項目上工作,我無法弄清楚如何在我的js中正確定義一個樹枝模板的路徑。在Symfony/angular項目的js文件中模板的路徑
到路徑:-the原來JS -the模板 與assetic
...
+-src/
| +-MyCompany/
| +-MyBundle/
| +-Resources/
| +-public/
| +-js/
| +-directive/
| +-my_file.js
| +-view/
| +-template/
| my_template.html.twig
+-web/
| bundles/
| +-MyBundle/
| +-js/
| +-my_fil.js
...
我的js代碼-the JS路徑:
return {
templateUrl: '?'
}
那麼,有沒有一種方法,包括:從包到資產文件的路徑? (我嘗試了@包/符號,但沒有工作)。 或者,當我在我的html中包含js時,要使用包的js而不是資產的js?
感謝