Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.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
Javascript matColumnDef复制9中component.ts中的表属性_Javascript_Html_Angular_Angular9 - Fatal编程技术网

Javascript matColumnDef复制9中component.ts中的表属性

Javascript matColumnDef复制9中component.ts中的表属性,javascript,html,angular,angular9,Javascript,Html,Angular,Angular9,我有一个问题,我仍然无法理解,我需要有人指导我如何继续。我的.ts中有这个表: @Input() 列:TableColumn[]=[ {label:'Id',property:'idSupplierCompany',type:'text',visible:true,cssClasses:['font-small']}, {label:'Nome',property:'supplierName',type:'text',visible:true,cssClasses:['font-small']

我有一个问题,我仍然无法理解,我需要有人指导我如何继续。我的.ts中有这个表:

@Input()
列:TableColumn[]=[
{label:'Id',property:'idSupplierCompany',type:'text',visible:true,cssClasses:['font-small']},
{label:'Nome',property:'supplierName',type:'text',visible:true,cssClasses:['font-small']},
{label:'Cnpj',property:'Cnpj',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Rua',property:'street',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Número',property:'number',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Bairro',property:'neighbory',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'CEP',property:'zipCode',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
您有
*ngIf=“column.type==='text'&&column.property!=='cnpj'
*ngIf=“column.type=='text'&&column.property=='zipCode'
,因此当column.property为'zipCode'时,可以复制该列