Ionic - two Toggle bars show -


here codepen link: http://codepen.io/anon/pen/mwpgge specific html is:

  <ion-toggle>       <div class="item">         {{menu.form.surveymode ? 'survey' : 'enforcement'}} mode          <label class="toggle toggle-positive">           <input type="checkbox" ng-model="menu.form.surveymode">           <div class="track"><div class="handle"></div></div>         </label>       </div>   </ion-toggle> 

this showing 2 toggle buttons, need one. if remove <ion-toggle> button not act slider button.

<ion-toggle ng-model="menu.form.surveymode" toggle-class="toggle-positive">     {{menu.form.surveymode ? 'survey' : 'enforcement'}} mode  </ion-toggle> 

the above piece of code solved problem.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -