I have number of posts and I have to activate the toggle on view only those clicked by the user. But when the button of one post is clicked each posts' button is active although it does not get updated to the database.
<p class="font">
<strong>Space Type: </strong>{{ post.AvailableSpace.Space.SpaceTypeName }}
<br> <strong>Address: </strong> {{ post.AvailableSpace.Address}}
<br><strong>Price: </strong> {{ post.AvailableSpace.Price }} {{ post.AvailableSpace.PriceType.PriceTypeName}}
<br><strong>No of available rooms: </strong> {{post.AvailableSpace.NoOfRooms}}
<br>
</p>