summaryrefslogtreecommitdiffstats
path: root/js/app/controllers/settingscontroller.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/controllers/settingscontroller.coffee')
-rw-r--r--js/app/controllers/settingscontroller.coffee15
1 files changed, 6 insertions, 9 deletions
diff --git a/js/app/controllers/settingscontroller.coffee b/js/app/controllers/settingscontroller.coffee
index ec94b843c..07cf7360a 100644
--- a/js/app/controllers/settingscontroller.coffee
+++ b/js/app/controllers/settingscontroller.coffee
@@ -21,15 +21,12 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
###
-angular.module('News').factory '_SettingsController', ->
+angular.module('News').controller 'SettingsController',
+['$scope', 'FeedBl', ($scope, FeedBl) ->
- class SettingsController
+ $scope.import = (fileContent) ->
+ console.log fileContent
- constructor: (@$scope) ->
+ $scope.feedBl = FeedBl
- @$scope.import = (fileContent) =>
- console.log 'hi'
- console.log fileContent
-
-
- return SettingsController \ No newline at end of file
+] \ No newline at end of file