This is a chronology module and components for Angular projects. Live Demo Here
To get started using the library install from npm
npm i ngx-chronology --save
This will give you access to the module and components available in the library.
After installing the library to get access to the features you need to add it to your AppModule.
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxChronologyModule } from 'ngx-chronology';
@NgModule({
imports: [BrowserModule, NgxChronologyModule],
declarations: [AppComponent],
})
export class AppModule {}
The inside of you app.component.html you can use the component directve like so:
<ngx-chronology [title]="chronologyTitle" [events]="ArrayOfEvents"></ngx-chronology>
The array of events passed to 'ngx-chronology' component should be a set of objects that match the interface:
export interface IChronologyEvent {
title: string;
icon?: string;
faLibrary: 'far' | 'fas' | 'fab';
content: string;
}
For more information on using this component go to the Documentation and Demo site
Go check out our Contributing Document for more information on getting setup.