Я ищу решение, в котором я могу оценить
this.stock1 = undefined
при закрытии коробки.
<div style="width: 30%;" #closeable1>
<input class="rd" type="radio" name="sub-chart" checked/>
<small>Low</small>
<input class="rd" type="radio" name="sub-chart"/><small>Medium</small>
<input class="rd" type="radio" name="sub-chart"/><small>High</small>
<input class="rd" type="radio" name="sub-chart"/><small>NA</ small>
<button type="button" class="close" aria-label="Close"
(click)="closing1(closeable1)">
<span aria-hidden="true">x</span>
</button>
<hr>
<div style="width:98%;" [chart]="stock1"></div>
</div>
In the above code, when I close the box, I want the value of `stock1`,
Which is there in .ts file to be set to undefined while closing the box.
Something like,
// Hello.ts
`this.stock`;
closing1 (closeable: HTMLDivElement, stock?: any) {
// is there way to make the value of
this.stock1 = undefined; // before closing
closeable.remove();
}
Как сделать значение this.stock1 = неопределенным при закрытии?
Вы можете сослаться на изображение, прикрепленное для справки.