Implementation of the float label pattern in AngularJS