Skip to content

Commit

Permalink
markdown m.f.er do you write it
Browse files Browse the repository at this point in the history
  • Loading branch information
ludicast committed Dec 15, 2011
1 parent 74d365a commit aafd35b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ This helper file adds some features to help parse results.

* An `AngularModel` class. All classes that inherit from this may be used to wrap the results returned from angular. They also allow you to map hasMany associations like so:

class @Todo extends AngularModel
schedule:(procrastinationTime)-> # postpone to future
class @Todo extends AngularModel
schedule:(procrastinationTime)-> # postpone to future

class @TodoList extends AngularModel
hasMany:
todos: Todo
class @TodoList extends AngularModel
hasMany:
todos: Todo

* An `autowrap` function added to global namespace. This function takes a class to wrap the resource result in and optionally takes a function to pass it in to. This function is passed in as the success function like so:

@all_todo_lists = TodoListService.get {}, autowrap(TodoList)
@all_todo_lists = TodoListService.get {}, autowrap(TodoList)

A final thing added to this helper file is initialization of angularjs. This way, if angularjs is added to asset pipeline, no `ng:autobind` tag needs to be (or should be) added.

Expand Down

0 comments on commit aafd35b

Please sign in to comment.