Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection $decode expected array #369

Open
corehook opened this issue Feb 6, 2016 · 0 comments
Open

Collection $decode expected array #369

corehook opened this issue Feb 6, 2016 · 0 comments

Comments

@corehook
Copy link

corehook commented Feb 6, 2016

Hello guys!
I have some code

@application.factory 'ParserSettings', ['restmod', (restmod) ->
  restmod.model('/admin/parser_settings')
]

class ParserSettingsController
  constructor: (@rootScope, @scope, ParserSettings) ->
    vm = @
    vm.settings = ParserSettings.$search({})


@application.controller 'ParserSettingsController', ['$rootScope','$scope', 'ParserSettings', ParserSettingsController]

Backend return array

[{"_id":{"$oid":"56aa67d5d43b6d6facc57ada"},"c_at":"2016-01-28T19:11:17.960Z","delay_per_request":180,....

In browser console i get
Collection $decode expected array

What i doing wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant