Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    this != $scope? Where exactly do you expect the angular scope to come from (It's not a global variable)? Commented Jun 11, 2017 at 12:48
  • @Bergi I updated my question. Thanks for your comment. Commented Jun 11, 2017 at 13:01
  • 1
    Thanks for the update, but I can't believe that "scope can't be read". Is there an error message, what exactly does not work as expected? Btw, I don't see any promise in your code, so I don't know what "putting it before the promise" means. Commented Jun 11, 2017 at 14:22