Reckless-Saturn/restaurant-app — pull request #24 by blankmaker (2014-09-03 18:19:08+00:00)
Title: Refactor/controllers and services

@lmle:

In reference to Issue: https://github.com/Reckless-Saturn/restaurant-app/issues/18

This PR starts the refactor of controllers and services.

There are now only two controllers:
1) CustomerCtrl
2) RestaurantCtrl

I created two factories:
1) Customers
2) Restaurants

* This also removes all the ionic templates that aren't needed (i.e. browse, search, playlists)
* If you've already merged in PR https://github.com/Reckless-Saturn/restaurant-app/pull/22, you might have a few conflicts. After doing PR https://github.com/Reckless-Saturn/restaurant-app/pull/22, I started back at the old master and cut another refactor branch. In retrospect, I should have separated concerns in both PR's (sorry!). In any case, app.js and controllers.js in this PR (is the most accurate).

Hopefully this helps. G-message me if you have any questions!