angularjs - How to make angular material checkbox unchecked by default? -
how keep checkbox unchecked default? partial html view.
<md-checkbox class="md-primary" ng-model="mailingsameaspermanent" ng-checked="false"><!--ng-change="click()">--> tick if mailing address same permanent address </md-checkbox> {{someinput}}
i don't have in angular controller.
initialize $scope.mailingsameaspermanent = false
in conroller. or in html as
<md-checkbox class="md-primary" ng-model="mailingsameaspermanent" ng-init="mailingsameaspermanent = false"></md-checkbox>
Comments
Post a Comment