mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-24 14:00:33 +08:00
Move to fetch
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
angular.module("sideBySide").factory "fetch", ['$http', 'readerFactory', ($http, readerFactory) ->
|
||||
angular.module("sideBySide").factory "fetch", ['$http', '$q', 'readerFactory', ($http, $q, readerFactory) ->
|
||||
# Fetch
|
||||
#
|
||||
# @param file [String] Path to config file
|
||||
@@ -10,7 +10,7 @@ angular.module("sideBySide").factory "fetch", ['$http', 'readerFactory', ($http,
|
||||
readerFactory(poem) response.data
|
||||
|
||||
{
|
||||
promises: promises
|
||||
fetchPoems: $q.all promises
|
||||
heading: config.data.heading
|
||||
active: config.data.active
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user