First you need to install the plugin using the CLI:
cordova plugin add cordova-plugin-file-transfer
ngCordova
$cordovaFileTransfer :
var app= angular.module('myApp', ['ngCordova']);
app.controller('HomeCtrl', ['$scope', '$http', '$cordovaFileTransfer',function($scope, $http,$cordovaFileTransfer) {
var url = "http://cdn.wall-pix.net/albums/art-space/00030109.jpg";
var targetPath = cordova.file.documentsDirectory + "testImage.png";
var trustHosts = true;
var options = {};
$scope.trans=function(){
$cordovaFileTransfer.download(url, targetPath, options, trustHosts)
.then(function(result) {
}, function(err) {
}, function (progress) {
});
}
}]);
: http://ngcordova.com/docs/plugins/fileTransfer/