How can I trigger either setTimeout or $timeout on a button click. Right now even if I put it inside the button click function it getting executed on its own it is not waiting for the click event to trigger it.How can I trigger either setTimeout or $timeout