single toggle button in angularjs to switch ON/OFF : i have this code of 2 different labels.. I want it should work on toggle slider button. plz help. this is my code

 <div class="btn-group" id="save">   
 
              <label href="#pre_sum" for="id_url"
               data-toggle="modal" class="btn btn-default btn-on btn-lg" ng-click="getdata()" id="saveOn">
                ON
              </label>
 
              <label id="devicesStatusId" 
                      class="btn btn-default btn-off btn-lg" style="color:#fff;background-color:#DA4F49" id="saveOff"
                      ng-click="changeDeviceStatus();" id="devicesStatusId">
                OFF
              </label>
          
            </div>

