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

angular-ladda-lw

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-ladda-lw

A lightweight, native Angular ladda indicator

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

angular-ladda-lw

Build Status Coverage Status npm version Bower version

Preview

A lightweight ladda alternative for Angular. [Demo]

Requirements

  • Angular
  • ngAnimate

Browsers

  • IE10+, Chrome, FF, Opera with animations
  • IE9 without animations (but functional)

Install

bower install angular-ladda-lw --save

or

npm install angular-ladda-lw --save

Files

You need the js and css files.

bower_components/angular-ladda-lw/dist/angular-ladda-lw.js
bower_components/angular-ladda-lw/dist/angular-ladda-lw.css

You can also use the angular-ladda-lw.min.* if you want.

Module name

angular.module('myApp', ['angular-ladda-lw']);

Example

<button class="my-button" ladda="ctrl.loading" ng-click="ctrl.doThing(thing)">Hello, world!</button>
this.doThing = thing => {
  this.loading = true;
  MyService.doThing(thing).then(res => {
    // TODO
  }, err => {
    // Stuff broke
  }).finally(() => {
    this.loading = false;
  });
}

Develop

Dependencies

npm install -g babel-cli babel-preset-es2015 node-sass uglify-js sass-lint eslint karma-cli http-server
npm install

Develop

npm start

Run demo server

From project directory:

http-server . -o

Then go to http://localhost:8080/demo/

Bonus!

The spinner is stolen from chieffancypants/angular-loading-bar, so if you decide to use that, this project will look consistent and professional. :)

FAQs

Package last updated on 14 Aug 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