exl-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Excel Parser

This library is Excel parser which takes Excel file as input and return table as view and Json Data as response. Demo Click Here (https://angular-excel-read-table-16p1jv.stackblitz.io/)

Implimentation

app.component.html

<input type="file" (change)="fileUPload($event)">

<rzn-exl-parser [file]="testFile"
(excelData)="dataFromExcel($event)">
</rzn-exl-parser>

app.component.ts

import {Component} from '@angular/core';

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

  testFile: any;

  fileUPload(event: any) {
    this.testFile = event;
  }


  dataFromExcel(data:any){
    console.log(data);
  }

}

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {ExlParserModule} from 'exl-parser';



@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
ExlParserModule,

],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.51latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.90
0.0.80
0.0.71
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i exl-parser

Weekly Downloads

2

Version

0.1.5

License

ISC

Unpacked Size

318 kB

Total Files

35

Last publish

Collaborators

  • rujan