# ICS Drive

A library providing methods to interact with Leap Drive.

## Installation

`npm install --save @varmasagi/ics-drive`

## Usage

Import IcsDriveModule in your application module file, and provide IcsDriveService in the same.

###Example

```typescript
...
@NgModule({
  imports: [
    IcsDriveModule
  ],
...
  providers:[IcsDriveService],
...
```

Use ImagePopupComponent as needed in your component files.

```typescript
import { ImagePopupComponent } from '@varmasagi/ics-drive';
...
imagePopupComponentRef: MatDialogRef<ImagePopupComponent>;
...
this.imagePopupComponentRef = this.dialog.open(ImagePopupComponent, {
      width: '50%',
      panelClass: "detailDialog",
      data: {
        name: args
      },
    }
    );
    this.imagePopupComponentRef.afterClosed().subscribe(result => {
      console.log(result);
      //do something here
    }, err => {
        //error
    });
```

Implement it the same way for UploadModalComponent

```typescript
import {UploadModalComponent} from '@varmasagi/ics-drive';
...
uploadModalComponentRef: MatDialogRef<UploadModalComponent>;
...
this.uploadModalComponentRef = this.dialog.open(UploadModalComponent, {
      width: '50%', height: '70%', panelClass: "detailDialog", data: {
        dataKey: true
      }
    });
    this.uploadModalComponentRef.afterClosed().subscribe(result => {
      //do something here

    }, err => {
      //error
    });
```
