1 2 3 4 5 6
app.service('DavClient', function() { var xhr = new dav.transport.Basic( new dav.Credentials() ); return new dav.Client(xhr); });