search

Home  >  Q&A  >  body text

angular.js - jade template engine cannot do single page mode, please tell me how to do it.

Using the route module of angularjs to create a single page mode, I found that jade cannot parse it at all and must request a back-end service to parse it. Please ask God to think of a solution.

伊谢尔伦伊谢尔伦2775 days ago569

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-15 17:00:11

    For pure front-end, just compile jade into html and then request it.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-15 17:00:11

    Why should we use jade for pure front-end?
    If you use Angular, don’t use Jade~ It’s too troublesome~
    Since Angular is a pure front-end~ use Api to interact
    No need for rendering, give up Jade~

    reply
    0
  • Cancelreply