ng-checked and ng-change radio button not work together - angularjs

前端 未结 4 2045
梦谈多话
梦谈多话 2020-12-16 17:37

http://plnkr.co/edit/RP9SpO1qGjn5Ua6pZJ3D?p=preview

js

angular.module(\"sampleapp\", []).controller(\'samplecontroller\', function($scope,$rootScope)         


        
4条回答
  •  时光说笑
    2020-12-16 18:22

    This is because ng-change requires ngModel to be present.

    Hope this helps. Cheers!

提交回复
热议问题