{{time.hours}} : {{time.minutes}} {{time.meridian}}
')}])}(),angular.module("ionic-timepicker",["ionic-timepicker.provider","ionic-timepicker.templates"]),angular.module("ionic-timepicker.provider",[]).provider("ionicTimePicker",function(){var i={setLabel:"Set",closeLabel:"Close",inputTime:60*(new Date).getHours()*60+60*(new Date).getMinutes(),format:12,step:15};this.configTimePicker=function(e){angular.extend(i,e)},this.$get=["$rootScope","$ionicPopup",function(e,t){function n(i){return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i}function o(i,e){r.time.hours=i/3600;var t=i%3600;12==e&&(r.time.hours>12?(r.time.hours-=12,r.time.meridian="PM"):r.time.meridian="AM"),r.time.minutes=t/60,r.time.hours=r.time.hours.toFixed(0),r.time.minutes=r.time.minutes.toFixed(0),1==r.time.hours.toString().length&&(r.time.hours="0"+r.time.hours),1==r.time.minutes.toString().length&&(r.time.minutes="0"+r.time.minutes),r.time.format=r.mainObj.format}var m={},r=e.$new();return r.today=n(new Date).getTime(),r.time={},r.increaseHours=function(){r.time.hours=Number(r.time.hours),12==r.mainObj.format&&(12!=r.time.hours?r.time.hours+=1:r.time.hours=1),24==r.mainObj.format&&(r.time.hours=(r.time.hours+1)%24),r.time.hours=r.time.hours<10?"0"+r.time.hours:r.time.hours},r.decreaseHours=function(){r.time.hours=Number(r.time.hours),12==r.mainObj.format&&(r.time.hours>1?r.time.hours-=1:r.time.hours=12),24==r.mainObj.format&&(r.time.hours=(r.time.hours+23)%24),r.time.hours=r.time.hours<10?"0"+r.time.hours:r.time.hours},r.increaseMinutes=function(){r.time.minutes=Number(r.time.minutes),r.time.minutes=(r.time.minutes+r.mainObj.step)%60,r.time.minutes=r.time.minutes<10?"0"+r.time.minutes:r.time.minutes},r.decreaseMinutes=function(){r.time.minutes=Number(r.time.minutes),r.time.minutes=(r.time.minutes+(60-r.mainObj.step))%60,r.time.minutes=r.time.minutes<10?"0"+r.time.minutes:r.time.minutes},r.changeMeridian=function(){r.time.meridian="AM"===r.time.meridian?"PM":"AM"},m.openTimePicker=function(e){var n=[];r.mainObj=angular.extend({},i,e),o(r.mainObj.inputTime,r.mainObj.format),n.push({text:r.mainObj.setLabel,type:"button_set",onTap:function(i){var e=0;12==r.time.format?("PM"==r.time.meridian&&(r.time.hours=Number(r.time.hours),r.time.hours+=12),e=60*r.time.hours*60+60*r.time.minutes):e=60*r.time.hours*60+60*r.time.minutes,r.mainObj.callback(e)}}),n.push({text:r.mainObj.closeLabel,type:"button_close"}),r.popup=t.show({templateUrl:"ionic-timepicker.html",scope:r,cssClass:"ionic_timepicker_popup",buttons:n})},m}]});
\ No newline at end of file
diff --git a/package.json b/package.json
index 278e70b..d412a4e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ionic-timepicker",
- "version": "0.4.0",
+ "version": "0.5.0",
"authors": [
"rajeshwarpatlolla