Skip to content

wrap "gapi" calls with $q.when #81

@orizens

Description

@orizens

that - in order to avoid injecting $scope/scope.
in uGapi:

function insert (params) {
                return $q.when(gapi.client.youtube[resourceName].insert(params))
                    .then(function (response) {
                        return response;
                    });
            }

then, other services/controllers don't need to use $scope.$apply (like in UserPlaylists).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions