0.0.11 • Published 3 years ago

ni-clock v0.0.11

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
3 years ago

NiClock

Angular Clock Component

Installation

npm i ni-clock
import { NiClockModule } from 'ni-clock'; // <= import

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NiClockModule, // <= register
  ]
  bootstrap: [AppComponent]
})
export class AppModule { }

Example

  • Your component class:
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent implements OnInit {

    date = new Date();
    // ...
}
  • Your component html template:
<ni-clock [time]="value" [auto]="false"></ni-clock>
<!-- ... -->

API

  • time: specifies the date object that is used to show the clock.
  • auto: if true, the clock start ticking. true by default.
0.0.10

3 years ago

0.0.11

3 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago