0.7.110 • Published 6 years ago

mdds-angular-file v0.7.110

Weekly downloads
18
License
MIT
Repository
-
Last release
6 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

6 years ago

0.7.106

6 years ago

0.7.105

6 years ago

0.7.100

6 years ago

0.7.80

6 years ago

0.7.65

6 years ago

0.7.61

6 years ago

0.7.60

6 years ago

0.7.20

6 years ago

0.7.10

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.50

6 years ago

0.1.0

6 years ago

0.6.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago