A angularjs directive which allows only numbers with decimal to be typed into a text box .