Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-floating-label

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-floating-label

Floating label directive for AngularJs

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by211.11%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub version Bower version NPM version

Build Status

angular-floating-label

Angular directive creating a "floating label" for inputs with a placeholder. Based on: https://github.com/jverdi/JVFloatLabeledTextField and https://github.com/maman/JVFloat.js

Changelog

See changelog

Usage

Add the js file to your html file, optionally add the css file as well.

Add components to your angular dependencies and then just add floating-label as an attribute on your input fields.

floating-label requires a placeholder attribute, which will be used as label. Optionally you can specify an ng-model, if you don't specify it, you are required to add the id or the name attribute.

Examples

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../dist/floating-label.css">
    </head>
    
    <body ng-app="demo">
   
       <form>
           <div class="control-group">
               <input type="text" placeholder="Email address" floating-label ng-model="test" />
           </div>
       </form>


        <script src="bower_components/angular/angular.js"></script>
        <script src="bower_components/angular-floating-label/dist/floating-label.js"></script>

        <script>
            angular.module('demo', ['components']);
            angular.module('demo').controller('DemoController', function () {});
        </script>
    </body>
</html>

More examples in the example folder

Keywords

FAQs

Package last updated on 13 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc