$scope.shareFile = function (file) {
var allurl;
var listurl;
$http.get(config.AppUrl+'_api/web/lists/getbytitle(\'file\')', { headers: { 'accept': 'application/json;odata=verbose' } }).then(
function (response) {
listurl = response.data.d.Id
allurl = "../_layouts/15/User.aspx?List={" + listurl + "}&obj={" + listurl + "}," + file.ID + ",LISTITEM";
$window.open(encodeURI(allurl), '_blank')
},
function (response) {
})
}
var allurl;
var listurl;
$http.get(config.AppUrl+'_api/web/lists/getbytitle(\'file\')', { headers: { 'accept': 'application/json;odata=verbose' } }).then(
function (response) {
listurl = response.data.d.Id
allurl = "../_layouts/15/User.aspx?List={" + listurl + "}&obj={" + listurl + "}," + file.ID + ",LISTITEM";
$window.open(encodeURI(allurl), '_blank')
},
function (response) {
})
}