search

Home  >  Q&A  >  body text

javascript - angular How to load different html to switch views without the server environment?

How to implement page nesting in the local IDE without configuring the server

<p ng-app="" ng-controller="studentController">
  <p ng-include="'main.html'"></p>
  <p ng-include="'subjects.html'"></p>
</p>

ng-includeIt seems that the server must be configured to execute. How can it be executed without the server?

漂亮男人漂亮男人2861 days ago970

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-15 17:16:21

    You can’t do this without service. You should write html and use ng-show to control display and hiding

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 17:16:21

    http://stackoverflow.com/a/16...

    reply
    0
  • Cancelreply