search

Home  >  Q&A  >  body text

angular.js - How to read the upper level directory with ng-include?

The calling file directory is directory a, which is at the same level as the control-panes directory. Why is ../ ignored?

PHP中文网PHP中文网2731 days ago1303

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-06-28 09:29:24

    Try changing the path referenced by ng-include to a path relative to index.html

    In addition, ng-include has different writing methods of writing src and not writing src

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-06-28 09:29:24

    Try using absolute paths and start writing from the root directory

    reply
    0
  • Cancelreply