Я не могу получить доступ к ссылочным переменным шаблона #interface if this.activeTab = 'interface';
// parent.html
<button type="button" [disabled]="activeTab.revertDisabled"></button>
<interface-settings #interface></interface-settings>
<car #car></car>
// parent.ts
this.activeTab = 'interface';
//child.ts (interface-settings.ts)
this.revertDisabled = true;
, но если я изменю его на следующее, то он сможет получить доступ к #interface.
<button type="button" [disabled]="interface.revertDisabled"></button>
Есть ли способ динамического доступа к значениям this.activeTab?
Я пробовал следующее, но не работает
<button type="button" [disabled]="[activeTab].revertDisabled"></button>