Angular Phonegap directives