Can angular be used within a jade template?

梦想的初衷 提交于 2019-11-29 14:52:54

Yes you can. It would look something like:

body(ng-app)
    button(ng-click="yourAngularFunc()")

You can download the angular-express-bootstrap-seed - A great starting point for writing AngularJS apps sauced with Twitter Bootstrap and backed by an Express-powered node.js server. this seed contains example of using jade template

For example:

.row
    .col-lg-12
            p This is the partial for view 2.
            p
                    | Showing of 'interpolate' filter:
                    | {{ 'Current version is v%VERSION%.' | interpolate }}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!