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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -