What file path would I use with ng-include?

前端 未结 1 2017
栀梦
栀梦 2021-02-13 09:51

My angular project\'s path is like this

web
    server.py ##flask server program
    app
        static
            app.js
            controllers.js
                    


        
相关标签:
1条回答
  • 2021-02-13 10:10

    The src attribute of ng-include expects a string. Either you pass a scope variable, or pass string directly.

    <ng-include src=" 'templates/home.html' "></ng-include>
    
    0 讨论(0)
提交回复
热议问题