myApp.controller('myController', ['$scope', function($scope) { this.$onInit = function() { $scope.myCheckbox = false; } }]);