我对@HostBinding装饰器的参数有什么要求? [英] What could I have like parameter to @HostBinding decorator?
本文介绍了我对@HostBinding装饰器的参数有什么要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
找不到有关它的文档.
从示例中我得到了3种情况:
-
@HostBinding(" attr .something")
-
@HostBinding(" class .something")
-
@HostBinding(" style .something")
但是还有更多吗?
解决方案
按照
Can't find documentation for it.
From examples I got 3 cases:
@HostBinding("attr.something")
@HostBinding("class.something")
@HostBinding("style.something")
but is there more?
解决方案
As per written in this link by Thierry Templier who is also active in this group if I remember correctly :) Picture is from post from that website.
这篇关于我对@HostBinding装饰器的参数有什么要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文