angular js templateUrl with absolute path

前端 未结 1 1804
陌清茗
陌清茗 2021-02-05 15:51

On the video watch page with the url

/watch/video_id

, I had a ng app. The directive is shown as below.

app.directi         


        
相关标签:
1条回答
  • 2021-02-05 16:34

    Did you try to add leading slash to templateUrl, like

    templateUrl: '/ng-templates/myTemplate.html', 
    
    0 讨论(0)
提交回复
热议问题