Click here to access a functional plunker for your reference.
Ensure that you have included all the necessary dependencies listed below before proceeding with your work.
<html lang="en" >
<head>
<link rel="stylesheet" href="https://example.com/angular-material.min.css">
<script src="https://example.com/angular.min.js"></script>
<script src="https://example.com/angular-animate.min.js"></script>
<script src="https://example.com/angular-aria.min.js"></script>
<script src="https://example.com/angular-messages.min.js"></script>
<script src="https://example.com/angular-material.min.js"></script>
<script language="javascript">
angular
.module('app', ['ngMaterial'])
.controller('checkBoxController', checkBoxController);
function checkBoxController ($scope) {
$scope.call = function(){
alert($scope.user.test)
}
}
</script>
</head>
<body ng-app="app" ng-controller="checkBoxController">
<md-checkbox ng-model="user.test" ng-change="call()" aria-label="No Ink Effects">
Check
</md-checkbox>
</body>
</html>