angular-countup

WebJar for angular-countup

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

angular-countup
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-countup
WebJar for angular-countup
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/dmitriy-borisov/angular-countup

Скачать angular-countup

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

angular-countup

Lightweight plugin for AngularJS 1.5.x without any dependencies for smooth changing the scope numbers

Installation

NPM:

npm install angular-countup --save

Include the file to your page after angular, like so:

<head>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
    <script src="path_to_folder/angular-countup.min.js"></script>
</head>

Add the module name to your main app file, for example:

angular.module('myApp', [
    ...
    'countUp'
])

Usage

<count-up ng-model="myvalue"></count-up>

myvalue is a $scope.myvalue in your controller

Additional attributes:

  • time - total time of increase from old value to new value. Default 1000 (1 second);
  • steps - frame count. Default 10;
  • decimals - count of numbers after dot. Default 0;
  • before - text before the value. Default: none;
  • after - text after the value. Default: none;

Demo

JSFiddle

Версии библиотеки

Версия
0.0.1