Is it possible to render x.jade partial in angular?

点点圈 提交于 2019-11-29 23:05:18
Sangram Singh

Yes it is possible. Look at the following link

Two important points to note are:

  1. templateUrl: 'partials/some' instead of templateUrl: 'partials/some.jade' and
  2. Add the following in routes: ( the code is for expressjs in node)

    app.get('/partials/:name', function (req, res)
     { var name = req.params.name;
       res.render('partials/' + name);
    });`
    
  3. Quit and relaunch node/express server.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!