Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
0 answers
246 views

AngularJS application for working with the Facebook API (using the cordova-plugin-facebook4 plugin)

I'm creating an application with AngularJS, and packaging it up with the Phonegap build. I'm using the facebook API (phonegap cordova-plugin-facebook4) for user authentication and getting a user's ...
Sarah's user avatar
  • 401
2 votes
1 answer
248 views

Angular JSON weather app

I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint. Here's the HTML: <...
parth's user avatar
  • 121
7 votes
1 answer
2k views

AngularJs Module Run Block, Configuration, and Route Definition

My AngularJs app is currently working fine. I'm working on modularity, refining my code design, and making it more readable. I have a app.js file that contains the ...
inspired's user avatar
  • 323
3 votes
1 answer
176 views

Angular controller without single responsability

I'm new in cordova / angularJS and I wonder how much responsibility a controller can have. This particular one validates users entry data, display messaging, takes pictures calling the camera API, ...
tribet's user avatar
  • 491
8 votes
1 answer
655 views

Two AngularJS controllers for camera actions

I have the same functionality in two controllers and I want to refactor to place it in a shared method that both controllers can access. I was thinking on creating a separate service called "Camera" ...
tribet's user avatar
  • 491
2 votes
1 answer
98 views

ngCordova plugin for audio player

I wrote a Cordova plugin for an app that I'm working on, and now I'm trying to write an Angular definition to wrap my plugin. So far, I've followed the model in ng-cordova.js: ...
Brian's user avatar
  • 433