search

Home  >  Q&A  >  body text

angular.js - Can variables be placed in the ng-include path in angularJS? Why can’t I write well? Please help take a look!

下面是代码:

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

The following is the error message:
GET http://localhost/wecaff/wei02... 404 (Not Found)

Question: Why can’t I get the path?

ringa_leeringa_lee2871 days ago520

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