PhoneGap Angular API