angular-treasure-overlay-spinner

WebJar for angular-treasure-overlay-spinner

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-treasure-overlay-spinner
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-treasure-overlay-spinner
WebJar for angular-treasure-overlay-spinner
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/treasure-data/angular-treasure-overlay-spinner

Download angular-treasure-overlay-spinner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-treasure-overlay-spinner/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-treasure-overlay-spinner</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-treasure-overlay-spinner/
implementation 'org.webjars.bower:angular-treasure-overlay-spinner:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-treasure-overlay-spinner/
implementation ("org.webjars.bower:angular-treasure-overlay-spinner:1.1.0")
'org.webjars.bower:angular-treasure-overlay-spinner:jar:1.1.0'
<dependency org="org.webjars.bower" name="angular-treasure-overlay-spinner" rev="1.1.0">
  <artifact name="angular-treasure-overlay-spinner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-treasure-overlay-spinner', version='1.1.0')
)
libraryDependencies += "org.webjars.bower" % "angular-treasure-overlay-spinner" % "1.1.0"
[org.webjars.bower/angular-treasure-overlay-spinner "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

angular-treasure-overlay-spinner

Add a spinner to an element when binding is truthy.

treasure-overlay-spinner requires ngAnimate.

Installation

  • bower install angular-treasure-overlay-spinner
  • add angular-treasure-overlay-spinner/src/treasure-overlay-spinner.js to your html
  • add angular-treasure-overlay-spinner/src/treasure-overlay-spinner.cssto your html
  • add treasure-overlay-spinner as an angular module dependency

Usage

angular.module('example', ['treasure-overlay-spinner']);
angular.module('example').run(run);

run.$inject = ['$rootScope'];
function run ($rootScope) {
  $scope.spinner = {active true};
}
<div ng-app='example'>
  <!-- active uses two-way bindings to track the status -->
  <treasure-overlay-spinner active='spinner.active'>
    <p>This will be covered by a spinner when spinner.active is truthy</p>
  </treasure-overlay-spinner>
</div>

Example

Try the example by running:

  • npm install
  • bower install
  • npm run example

Or visit the live example.

Scripts

  • npm run example - run example server and open browser
  • npm run build - minify and copy to dist folder
  • npm run tdd - run tests whenever files change
  • npm run test - run tests
org.webjars.bower

Treasure Data

Most companies say they love open source. We also LIVE it.

Versions

Version
1.1.0