News for hackers. Stuff that matters.
Re:Airquotes: Automatic quote generator for a T-shirt websit... by teleclimber on Thursday September 26, 2013 @12:44PM (#6451928)
You say this is an example of an application that does not depend on a service.

It seems to me this is an application that should depend on a service or two.

For example, you have your data in a big global variable. This is not a good practice.

I think Angular is one of those things where it pays to learn all its parts as soon as possible (services, compiles, etc..). I say this as someone who is going through the learning curve as well.

Re:Airquotes: Automatic quote generator for a T-shirt websit... by nilliams on Thursday September 26, 2013 @01:58PM (#6452451)
I think he means back-end service, rather than Angular's notion of services.

>> It's a good example of an AngularJS application that's not completely trivial and yet one that does not depend upon having a service it has to connect to for getting and persisting data.

Edit: Updated with relevant quote.

Re:Airquotes: Automatic quote generator for a T-shirt websit... by dustingetz on Thursday September 26, 2013 @11:57AM (#6451618)
here is the HTML and JS:

    https://github.com/JohnMunsch/airquotes/blob/master/app/index.html
    https://github.com/JohnMunsch/airquotes/blob/master/app/scripts/main.js
Re:Airquotes: Automatic quote generator for a T-shirt websit... by maniaccoder on Thursday September 26, 2013 @12:09PM (#6451696)
I would suggest extracting the calculation functions to angular services.