I have a textbox Role and i want to check whether role already exists in database or not on the server side for that i have created a directive uniqueRole now i want to pass the textbox value to that directive how to do that.I have a textbox Role and i want to check wheth