...Host Element 在介绍 HostListener 和 HostBinding 属性装饰器之前,我们先来了解一下 host element (宿主元素)。 宿主元素的概念同时适用于指令和组件。
双语例句
1
This way you can have as many fields as you want, but they don't clutter the namespace of the hostelement.
这样,您就能够拥有许多的域,但是它们不是分散到上级元素的命名空间中。
2
One thing it doesn't define, however, is a root element — that is left to a host language to address.
但是有一点它没有定义,就是根元素,这留给了宿主语言去解决。
3
The XML Events specification consists mainly of the definitions of attributes that can be placed on existing elements, along with a listener element that can also host the attributes.
XML Events 规范主要由可以放置在现有元素中的属性定义组成,还有一个 listener 元素用来容纳这些属性。