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

angular-balance-text

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-balance-text

AngularJS Wrapper for jQuery balance-text for implementing balancing of wrapping text in a web page

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

angular-balance-text

AngularJS Wrapper for jQuery balance-text for implementing balancing of wrapping text in a web page

npm version Bower version

Demo

Simple demo

Installation

  1. Install via either bower, npm or downloaded files:

    1. via bower: bower install --save angular-balance-text
    2. via npm: npm install --save angular-balance-text
    3. via downloaded files
  2. Add jtt_balance_text to your application's module dependencies.

  3. Include dependencies and angular-balance-text in your HTML.

    1. When using bower
    <!-- dependencies -->
    <script src="bower_components/jquery/dist/jquery.min.js"></script>
    <script src="bower_components/angular/angular.min.js"></script>
    <script src="bower_components/balance-text/jquery.balancetext.min.js"></script>
    
    <!-- angular-balance-text -->
    <script src="node_modules/angular-balance-text/dist/angular-balance-text.min.js"></script>
    
    1. When using npm
    <!-- dependencies -->
    <script src="node_modules/jquery/dist/jquery.min.js"></script>
    <script src="node_modules/angular/angular.min.js"></script>
    <script src="node_modules/balance-text/jquery.balancetext.min.js"></script>
    
    <!-- angular-balance-text -->
    <script src="node_modules/angular-balance-text/dist/angular-balance-text.min.js"></script>
    
    1. When using downloaded files
    <!-- dependencies -->
    <script src="YOUR_PATH/jquery.min.js"></script>
    <script src="YOUR_PATH/angular.min.js"></script>
    <script src="YOUR_PATH/jquery.balancetext.min.js"></script>
    
    <!-- angular-balance-text -->
    <script src="YOUR_PATH/angular-balance-text.min.js"></script>
    

Usage

Angular event to manually re-balance all triggered elements use angular-balance-text.refresh

Read the docs of jQuery balance-text jQuery balance-text

Keywords

FAQs

Package last updated on 31 Mar 2016

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