angular directory example on phonegap