1.0.1 • Published 5 years ago
ngxdrivepicker v1.0.1
NgxDrivePicker
Installing
npm install ngxdrivepicker
Usage
Import DrivePicker class to your script
import { DrivePicker } from 'ngxdrivepicker';
var drivePicker: DrivePicker;
pickAFile() {
if(!this.drivePicker) {
drivePicker = new DrivePicker(<<Browser Key>>, <<Client ID>>, 'https://www.googleapis.com/auth/drive.file');
}
drivePicker.open().then(data => {
console.log(data);
}).catch(rej => {
console.log(rej);
});
}