Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何在不使用<;选择>;及<;选项>;标签?_Angular_Typescript - Fatal编程技术网

Angular 如何在不使用<;选择>;及<;选项>;标签?

Angular 如何在不使用<;选择>;及<;选项>;标签?,angular,typescript,Angular,Typescript,如何在角度中创建可重复使用的选择组件,但不使用选择和选项标记?您不想使用选择或选项标记的位置?(父组件还是可重用组件本身?@AbdelrhmanElSayed,在可重用组件中。为什么您不想在可重用组件中使用和?为什么您不需要在可重用选择组件中使用selecttag?您应该使用普通元素实现本机选择功能,我认为这将是复杂的,没有问题我不知道你们注意到了。但是标签不允许我们使用CSS(如边框、填充等)。这是除了选项标签之外使用其他标签的唯一原因。

如何在角度中创建可重复使用的选择组件,但不使用选择选项标记?

您不想使用
选择
选项
标记的位置?(父组件还是可重用组件本身?@AbdelrhmanElSayed,在可重用组件中。为什么您不想在可重用组件中使用和?为什么您不需要在可重用选择组件中使用
select
tag?您应该使用普通元素实现本机选择功能,我认为这将是复杂的,没有问题我不知道你们注意到了。但是标签不允许我们使用CSS(如边框、填充等)。这是除了选项标签之外使用其他标签的唯一原因。