function updateModelFromElement()

in entity-browser-frontend/app/directive/toogle.js [12:18]


                function updateModelFromElement() {
                    var checked = $element.prop('checked');
                    if (checked !== ngModel.$viewValue) {
                        ngModel.$setViewValue(checked);
                        $scope.$apply();
                    }
                }