How can i pre-initalize the radio button or toggle button based upon what ng-model value we get?


when the page loads, I want to see the radio or toggle button selected on page load based upon what value its getting from ng-model.

 <ion-toggle ng-model="property.Red_Priority" ng-change="showValue()" ng-checked="property.Red_Priority">
    Ion toggle


$ = true;


Removing the ng-checked part should do it.

ngModel and ngChecked are not meant to be used together.

ngChecked is expecting an expression, so by saying ng-checked="true", you’re basically saying that the checkbox will always be checked by default.