angular 可以在玉石模板中使用吗? [英] Can angular be used within a jade template?
本文介绍了angular 可以在玉石模板中使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对 angular 和 jade 都是新手.我想知道 angular 是否只能与 HTML 一起使用,或者我是否可以在 jade 模板中使用相同的 angular 调用?我只见过 angular 模板与 HTML 一起使用,并没有发现它在任何玉模板中使用.有可能做这样的事情吗?玉石模板中的 angular 看起来如何?
I am new to both angular and jade. I was wondering if angular can only be used with HTML, or if I could use the same angular call within a jade template? I have only seen angular templates being used with HTML, and have not found it used in any jade templates. is it possible to do such a thing? How would angular in a jade template look?
推荐答案
是的,你可以.它看起来像:
Yes you can. It would look something like:
body(ng-app)
button(ng-click="yourAngularFunc()")
这篇关于angular 可以在玉石模板中使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文