@Ckpk wrote:
Hi guys,
anyone has an idea how to get the toggle value (true or false) in angularjs?
sample.html
<ion-toggle ng-model="addlist.nego" toggle-class="toggle-balanced">Negotiable</ion-toggle>
controller.js
console.log($scope.addlist.nego);
got a log
undefined
in the console log.What is the correct way to get the value
Posts: 10
Participants: 2