📜  角度选择器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:18.741000             🧑  作者: Mango

代码示例1
Angular uses a selector to determine which DOM object to target.
The selector can be used in three different ways:
- as a tag: { selector: 'my-component' }
- as an attribute: { selector: '[my-attribute]'}
- as a class: { selector: '.my-class' }

`

`