Created
November 24, 2015 19:08
-
-
Save Insayt/576e2410e1ade79fd121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('Yeopen') | |
.service('$videoApi', ['$modal', '$rootScope', '$state', 'AbstractService', 'Routes', | |
function ($modal, $rootScope, $state, AbstractService, Routes) { | |
var videoApi = new AbstractService(Routes.gallery); | |
angular.extend(videoApi, { | |
create: function(data) { | |
var self = this; | |
return this.createMethod('create')(data).success(function(res) { | |
console.log(res); | |
}); | |
} | |
}); | |
return videoApi; | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment