0.0.11 • Published 3 years ago
ni-clock v0.0.11
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>
<!-- ... -->