zr-counter
v5.0.0-beta.5
Published
This is a counter component.
Downloads
7
Readme
About
This is a counter component.
Installation
Install through npm:
npm install --save zr-counter
Then include in your apps module:
import { NgModule } from '@angular/core';
import { ZrCounterModule } from 'zr-counter';
@NgModule({
imports: [
ZrCounterModule.forRoot()
]
})
export class MyModule {}
Finally use in one of your apps components:
import { Component } from '@angular/core';
@Component({
template: '<zr-counter [(value)]="value01"></zr-counter>'
})
export class MyComponent {}
You may also find it useful to view the demo source.
Usage without a module bundler
<script src="node_modules/zr-counter/bundles/zr-counter.umd.js"></script>
<script>
// everything is exported zrCounter namespace
</script>