Are there some solution as how to hide an div container dynamically?
this is my current implementation:
<button class="button" on="tap:player.hide">hide me</button>
<button class=button" on="tap:player.show">show me</button>
<div id="player" class="show" [class]="show||hide">some content</div>
.hide {
display: none;
}
.show {
display: block;
}
which works as long the div class has the value 'show' in initial call. But what i want is to disable the container-view as long the buttons hasn't been clicked...
[class]="show||hide"
. Also do you need it to be visible at start or not visible at start? – Graubertclass="show" [class]="show||hide"
this part? It is not really needed if you are usingplayer.hide
andplayer.show
functions. – Graubert