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

mw-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mw-loader

AngularJS module that give you a cool loader animation on an element

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

mw-loader

AngularJS module that give you a cool loader animation on an element.

Requirements (tested in)

  • Angular (v1.6.9)

Install

You can install this package either with npm or with bower.

npm

npm install mw-loader --save

bower

bower install mw-loader

Usage

Once the script is included in your html file, simply include the module in your app:

angular.module('myApp', ['mw-loader']);

And trigger a 'mw-loader-on' event thusly:

$rootScope.$broadcast('mw-loader-on');

The Loader will be closed if you trigger the 'mw-loader-off' event:

$rootScope.$broadcast('mw-loader-off');

You can pass the parameter 'timeout' to the event to hide the loader automaticly after a while

$rootScope.$broadcast('mw-loader-on', {"timeout": 1000});

Config

NameTypeDefaultDescription
parent_selectorstringbodyset the parent selector for the alert
on_startupinttrueshould the loader be active on startup
templateUrlstringmw-alert.htmlset the template URL

Demo

View demo on Plunker

Example

Loader example

Tasklist

  • fix spelling, grammar mistakes

Keywords

FAQs

Package last updated on 11 May 2018

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