Sprockets is a Ruby library for compiling and serving web assets. Sprockets allows to organize an application’s JavaScript files into smaller more manageable chunks that can be distributed over...
I would guess that angular is accessing $scope.friends while it is still a promise. Have you tried resolving the variable by using the resolve statement in the .state-definition?
What the ajax call is doing is returning something call a promise.
There are various articles you can look on this regards:
Tuesday, January 21, 2014, 12:00:00
This website is using cookies We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive all cookies on this website.
Learn more