You can do something like below. In this way, if it doesn't find any value, it will take the last value 'sys_id!=NULL' as the default value.



data.filter = input.filter || options.filter || 'sys_id!=NULL';



You will have to assign the value to the data variable to access it in HTML or Client Controller. In Client Controller you can access that variable in $scope.data.variablename.



Please mark this response as correct or helpful if it assisted you with your question.