##Introduction:
This application is built for time picker, which can be with any Ionic Framework application.
##Follow the below mentioned steps.
-
First, install Node.js, Bower, Grunt.
-
Run the following command from command prompt.
npm install -g cordova ionic
##Project Setup:
-
Move to any folder/workspace from command prompt, using the following command
cd DirectoryName
-
Type the following command and press enter.
git clone git@github.com:rajeshwarpatlolla/TimePickerForIonicFramework.git
-
Now you will see a message "Cloning into 'TimePickerForIonicFramework'...". Move to "TimePickerForIonicFramework" directory.
cd TimePickerForIonicFramework
-
Now install npm modules
npm install
-
Now install bower components / dependencies using
bower install
-
Once all the above steps completes successfully, use the following command to run the application.
ionic serve
##How to use:
Use the below format in your controller
$scope.slots = [
{epochTime: 12600, step: 15, format: 12},
{epochTime: 54900, step: 1, format: 24}
];
Use the below format in your template / html file
<ionic-time-picker etime="slots[0].epochTime" format="12" step="15">
slots[0].epochTime
</ionic-time-picker>
-
ionic-time-picker
is the directive, to which we can pass required vales. -
etime
takes epoch time. -
format
indicates 12 hour or 24 hour format. It can take two values, 12 or 24. -
step
indicates minute increment. It can take two values, 1 or 15.
##Versions:
1) v0.1
The whole time picker functionality has been implemented.
##Screen Shots: