# Problem matching state between elements

**URL:** <https://forum.ionicframework.com/t/problem-matching-state-between-elements/83645>\
**Category:** ionic-v3\
**Created:** [March 21, 2017, 1:16pm UTC](https://forum.ionicframework.com/t/problem-matching-state-between-elements/83645 "2017-03-21T13:16:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![APinto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/apinto/32/107696_2.png) [@APinto](https://forum.ionicframework.com/u/APinto)\
**Post date:** [March 21, 2017, 1:16pm UTC](https://forum.ionicframework.com/t/problem-matching-state-between-elements/83645/1 "2017-03-21T13:16:17Z")

</div>

Hello,

I’m using Ionic 2.2.1.

Something strange is going on with one of my components. It’s a simple list of `ion-card`s each with a `ion-toggle` in the header that shows/hides the `ion-content`:

```
	<ion-card-header>
		<strong ion-text color="primary">{{thing.name}}</strong>
		<ion-toggle [(ngModel)]="willAdd[thing.name]"></ion-toggle>
	</ion-card-header>

	<ion-card-content [hidden]="!willAdd[thing.name]">
		(...)
	</ion-card-content>

```

All `willAdd` object attributes are initialised to false. The problem is that when I press the toggle button, sometimes (50/50 chance) the content doesn’t show-up. If I press the toggle on another card, the content then immediately shows-up! If I press the original toggle again, then the content show’s up for a few milliseconds and hides (as expected to hide).

I really don’t understand what might be happening here. Could any of you help please?

Thank you,

AP
