angular.module('lightning')
.controller('ExampleController', ['$scope','$timeout', function($scope,$timeout) {
$scope.response = {
page: 2,
query: {
rpp: 50,
filters:[
{
field:'file type',
val:'pdf'
},
{
field:'type',
val:'man'
},
{
val:{
act: {
type: "range",
from: "2016-08-05T12:50:30.660",
to: "2016-08-10T12:50:40.509",
fromExcluded: false,
toExcluded:false
},
dsp:'2016-08-05T12:50:30.660Z - 2016-08-10T12:50:40.509Z'
},
field:'date'
},
{
val: {
act: {
type: "range",
from: 100,
to: "200",
fromExcluded: false,
toExcluded: false
},
dsp: '100 - 200'
},
field: 'numbers'
},
{
val: {
act:'foo',
dsp:'bar'
},
field:'problem'
}
]
},
facets: {}
}
}]);