search

Home  >  Q&A  >  body text

angular.js - angularJS 中的ng-include路径里面可以放变量吗?为什么我写的不行?请帮忙看看!

下面是代码:

<p ng-repeat="cc in plugList">
            <p ng-include="'{{cc.url}}'"></p>
        </p>

下面是报错信息:
GET http://localhost/wecaff/wei02... 404 (Not Found)

问题:为什么路径没有拿到呢?

ringa_leeringa_lee2744 days ago458

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-15 17:12:19

    Try it

    <p ng-include="cc.url"></p>

    reply
    0
  • Cancelreply