What's the use of Jade or Handlebars when writing AngularJs apps

前端 未结 10 1200
情歌与酒
情歌与酒 2020-12-07 08:38

I am new(ish) to the whole javascript full stack applications, and completely new to Angular, so I was hoping somebody can put the record straight for me here.

Why w

10条回答
  •  鱼传尺愫
    2020-12-07 09:08

    You can include angular templates via Jade.

    script(type="text/ng-template", id="admin")
      include partials/admin
    

    For caching templates I perceive this as much less fragile than including the escaped templates in the javascript files.

    See: https://docs.angularjs.org/api/ng/service/$templateCache

提交回复
热议问题