aloketewary / angularx-count-to

This is the support the work for original angular-count-to for Angular 2+

Home Page:https://aloketewary.github.io/angularx-count-to/#readme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angularx-count-to

version 1.0.4

travis status npm version license

The popular AngularJS based angular-count-to now counto for Angular 2+ including latest Angular 5.1.x release supported

installing it from npm

npm install angularx-count-to --save
or try shortcut
npm i angularx-count-to -S

Add to your app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// All other imports
...
// Add CounToModule
import { CountToModule } from 'angularx-count-to';

@NgModule({
  declarations: [
	AppComponent
    // All your declaration goes here
  ],
  imports: [
    // All your other imports goes here
	.......
	// Add CountToModule in imports
    CountToModule
  ],
  providers: [// All your declaration goes here],
  bootstrap: [AppComponent]
})

export class AppModule { }

Add to your component html is easy

<countTo from="" duration="" to=""></countTo>
or
<countTo [from]="takeFromComponent" [duration]="takeDurationComponent" [to]="takeToComponent"></countTo>
or
you can add within any html tags

<h1 countTo [from]="takeFromComponent" [duration]="takeDurationComponent" [to]="takeToComponent"></h1>

Licence

MIT

About

This is the support the work for original angular-count-to for Angular 2+

https://aloketewary.github.io/angularx-count-to/#readme

License:MIT License


Languages

Language:HTML 97.8%Language:TypeScript 1.8%Language:JavaScript 0.4%Language:CSS 0.0%