On change event of input i am calling API using $resource but want to cancel all pending request when there is a new request.
\'$cancelRequest is not a function...\'