View on GitHub

Ngfloatinglabels

floating labels for angular js with floating validation

Download this project as a .zip file Download this project as a tar.gz file

GitHub version Bower version

Floating Validation and Labels for AngularJS

Description


This module has two directives

Installation


Bower:

> bower install angular-floating-labels --save

Usage


<link rel="stylesheet" href="src/ng-floating-labels.css">
<script src="src/ngFloatingLabels.js"></script>
angular.module('yourProject', ['ngFloatingLabels']);
<input type="text" placeholder="Simple Text" id="simpleText" name="simpleText" ng-model="simpleText" required floating-validation/>

attribute placeholder is REQUIRED

the parent div of the input field must be position:relative (see example for detail)

Example

ngFloating Validation Demo