All Projects → tiste → angular-loading-button

tiste / angular-loading-button

Licence: other
Loading button directive for AngularJS

Programming Languages

CSS
56736 projects
coffeescript
4710 projects

Projects that are alternatives of or similar to angular-loading-button

version-check
An action that allows you to check whether your npm package version has been updated
Stars: ✭ 65 (+140.74%)
Mutual labels:  package
pidesktop
Collected files, drivers and documentation for the pidesktop case
Stars: ✭ 26 (-3.7%)
Mutual labels:  package
menu button
Flutter plugin to display a popup menu button widget with handsome design and easy to use.
Stars: ✭ 64 (+137.04%)
Mutual labels:  package
cookiecutter-pypackage
A cookiecutter template for Python package with heavy use of Github actions
Stars: ✭ 19 (-29.63%)
Mutual labels:  package
Arch-Data-Science
Archlinux PKGBUILDs for Data Science, Machine Learning, Deep Learning, NLP and Computer Vision
Stars: ✭ 92 (+240.74%)
Mutual labels:  package
get-installed-path
Get locally or globally installation path of given package name.
Stars: ✭ 39 (+44.44%)
Mutual labels:  package
badgecreatr
Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
Stars: ✭ 61 (+125.93%)
Mutual labels:  package
ContactEtc
Laraval package to instantly add a customisable contact form to your site.
Stars: ✭ 21 (-22.22%)
Mutual labels:  package
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (+66.67%)
Mutual labels:  package
laravel-any
🏓 Laravel collection macro that determine if `any` item from the collection passes the given truth test.
Stars: ✭ 38 (+40.74%)
Mutual labels:  package
normalize-pkg
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
Stars: ✭ 18 (-33.33%)
Mutual labels:  package
react-double-marquee
A React marquee component that smoothly loops content.
Stars: ✭ 24 (-11.11%)
Mutual labels:  package
Ragnarok
Virus Package ( For Educational Purposes )
Stars: ✭ 23 (-14.81%)
Mutual labels:  package
LiteOTP
Multi OTP Spam Amp/Paralell threads
Stars: ✭ 50 (+85.19%)
Mutual labels:  package
create-npm-package
Creates an npm package boilerplate that you don't have to write again 📦
Stars: ✭ 21 (-22.22%)
Mutual labels:  package
angular-package-builder
[DEPRECATED] Packages your Angular 4+ library based on the Angular Package Format.
Stars: ✭ 25 (-7.41%)
Mutual labels:  package
sound field analysis-py
Analyze, visualize and process sound field data recorded by spherical microphone arrays.
Stars: ✭ 61 (+125.93%)
Mutual labels:  package
caption-core
Caption Core acts as an abstraction layer for Caption’s core functionality.
Stars: ✭ 33 (+22.22%)
Mutual labels:  package
atom-package-sync
Synchronize your atom packages and settings easily
Stars: ✭ 22 (-18.52%)
Mutual labels:  package
grammarly
Grammarly API interface
Stars: ✭ 87 (+222.22%)
Mutual labels:  package

angular-loading-button

Loading button directive for AngularJS.

Installation

bower install angular-loading-button --save

Usage

Inject module into you app:

angular.module('YourAwesomeApp', ['loadingButton']);

Use it at a directive:

<div class="btn btn-success" loading-button lb-completed="isSuccess">

You can also provide a lb-value tag to act on your button (e.g. height, background...).

Then, simply set the $scope.isSuccess to true or false, or change the lb-value to update the loader e.g.

$http.post('/contact', data).success(
  function() {
    $scope.isSuccess = true;
  }
).error(
  function() {
    $scope.isSuccess = false;
  }
);

The css classes life-cycle will be loading, error and success. It's up to you to customize (here is an example coming from this awesome Codrops article).

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

NB: mind generated files (e.g. angular-loading-button.min.js)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].