I have two buttons, which change the views with ng-show, and I have a filter on the default view. Filter is a dropdown that works with SlideToggle() and it works until I click the other button and go to the second view and when I click bac to the default one, dropdown stops working. I've inspected it in Chrome, nothing happens this is the code for the dropdown:
<div ng-if="filter.entity === 'user'" class="col-md-12 filter-group">
<h5 class="open">Age<span class="caret"></span></h5>
<div class="filter-group-items filter">
<div>Age
<rzslider rz-slider-model="filter.ageMin" rz-slider high="filter.ageMax" rz-slider-options="sliderOptionsAmount">
</rzslider>
</div>
<div>
</div>
This it the js
$(".open").click(() => {
$(".filter").slideToggle()
})