Answer the question
In order to leave comments, you need to log in
How to hide a component from the outside?
In the main component, a component with a div block is inserted, which has an absolute position relative to the parent.
The block can be opened and hidden by clicking:
public show = false;
showHide() {
this.show = !this.show;
}
show
Answer the question
In order to leave comments, you need to log in
if I understand the question correctly...
@Input()
set showOutside(show) {
this.show = show;
}
I don't want to create a service for one show variable...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question