# Problem with toogle update

**URL:** <https://forum.ionicframework.com/t/problem-with-toogle-update/25191>\
**Category:** ionic-v1\
**Created:** [May 21, 2015, 9:56am UTC](https://forum.ionicframework.com/t/problem-with-toogle-update/25191 "2015-05-21T09:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalxp](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/digitalxp/32/7211_2.png) [@digitalxp](https://forum.ionicframework.com/u/digitalxp)\
**Post date:** [May 21, 2015, 9:56am UTC](https://forum.ionicframework.com/t/problem-with-toogle-update/25191/1 "2015-05-21T09:56:38Z")

</div>

Dear friends I make me crazy tring to update toogle value!  
This is my template:

```
<ion-toggle ng-model="priva.M_PMEMAIL" ng-change="pushPM()" ng-true-value="1" ng-false-value="0" ng-checked="priva.M_PMEMAIL">Ricevi notifica via mail dei messaggi privati: </ion-toggle>

```

To understand the problem I make this controller:

```
$scope.pushPM = function() {
console.log('Push Notification Change', $scope.priva.M_PMEMAIL);
};

```

The problem is that if the toogle start with checked value (value of 1) when I toggle off nothing happen. When I toogle again on, I see the changed value on console log…  
Where is the problem?!
