Before reading this article, please go through the article links given below.
- Quick Start On Apache Cordova Using Visual Studio 2015
- Using Ionic Blank App Using Visual Studio 2015
- Using Ionic Side Menu App Using Visual Studio 2015
- Using Ionic Tabs App Using Visual Studio 2015
- Working With Color Classes In Ionic Blank App Using Visual Studio 2015
- Working With Button Class In Ionic Blank App Using Visual Studio 2015
- Working With Ionic List Item Class In Ionic Blank App using Visual Studio 2015
Apache Cordova
Apache Cordova is an open source project that aims at letting mobile developers build applications for all major mobile platforms, using HTML, CSS and JavaScript technologies.
Ionic Framework
Ionic is a powerful HTML5 SDK that helps you build native-feeling mobile apps using web technologies. like HTML, CSS, and JavaScript.
Building Ionic Blank App with different Toggle Classes in Visual Studio 2015
Let's see how Ionic Framework makes the use of Toggle class with different Styles.
A toggle button allows the user to change a setting between two states. It displays checked/unchecked states as a button. It is basically an on/off button with a light indicator.
It is beneficial if the user has to change the setting between two states. It can be used to On/Off Sound, Wi-Fi, Bluetooth etc.

Prerequisites
- Visual Studio 2015
- Visual Studio Tools for Apache Cordova
Follow the below steps.
Step 1 Create an Ionic Blank app
Let’s get started with creating New Project. Open Visual Studio 2015 and click File -> New -> Project option for creating Ionic Blank apps using Ionic Framework.

Step 2 Giving the Project Name
Then, New Project window will open. There, you can select an Installed -> Template -> Java Script -> Apache Cordova Apps -> Ionic JavaScript Blank.
Type project name as Ionic-Toggle app and click the OK button.

Step 3 Main Screen

Go to the Solution bar and choose the index.html. This is the starting screen of your app. We can add our HTML coding here.

Toggle can be implemented using two Ionic classes. We need to create label and assign toggle class to it. Track class will add background styling to our checkbox and color will change when toggle is tapped. Handle class is used to add circle button to it.








manikandan PalanisamyPosted Aug 15, 2019, 8:13 PM
nice article thank for your sharing knowledge do well
Vijay GuptaPosted Dec 3, 2017, 1:28 AM
Can we do this ionic program in visual studio 2010
Anu VPosted Nov 23, 2016, 11:20 PM
Nice article.. Thanks for sharing.