0.7.110 • Published 4 years ago

mdds-angular-file v0.7.110

Weekly downloads
18
License
MIT
Repository
-
Last release
4 years ago

Augular Authentication and Authorization Module

Usage: 1. Add 'mdds-angular-file" package as dependency in your project in file package.json:

For example:

"dependencies": { "@angular/common": "^6.0.3", "@angular/core": "^6.0.3", "@angular/forms": "^6.0.3", "@angular/http": "^6.0.3", "@angular/router": "^6.0.3", "rxjs": "^6.0.0", "zone.js": "^0.8.26", ... ... "mdds-angular-file": "" },

  1. Create a file-upload.config.ts to add the following two configuration variables required by 'mdds-angular-file' logic:

export const file_upload_uri: string = '/api/files/upload'; export const file_download_uri: string = '/api/files/download';

  1. Declare two providers in your app.module.ts:

    import { FILE_UPLOAD_URI, FILE_DOWNLOAD_URI } from 'mdds-angular-file'; import { file_upload_uri, file_download_uri } from './file-upload.config'; ... @NgModule( ... providers: [ ... { provide: FILE_UPLOAD_URI, useValue: file_upload_uri }, { provide: FILE_DOWNLOAD_URI, useValue: file_download_uri }

    ] ...

  2. Import 'FileUploadModule' in app.module.ts:

    import { FileUploadModule } from 'mdds-angular-file'; ...

    @NgModule( ... imports: ... FileUploadModule , ...

  3. Use the file upload cmoponent in your HTML:

    app.component.html

0.7.110

4 years ago

0.7.106

5 years ago

0.7.105

5 years ago

0.7.100

5 years ago

0.7.80

5 years ago

0.7.65

5 years ago

0.7.61

5 years ago

0.7.60

5 years ago

0.7.20

5 years ago

0.7.10

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.50

5 years ago

0.1.0

5 years ago

0.6.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago