Skip to content

Instantly share code, notes, and snippets.

View websiddu's full-sized avatar
😎
Cool

Siddhartha websiddu

😎
Cool
View GitHub Profile
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../shared/services/api/api.service';
import { DocframeComponent } from '../shared/docframe/docframe.component';
import {DomSanitizationService, SafeResourceUrl} from '@angular/platform-browser';
@Component({
moduleId: module.id,
selector: 'app-doc',
templateUrl: 'doc.component.html',
styleUrls: ['doc.component.css'],
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
declare var gapi: any;
declare var firebase: any;
const CLIENT_ID = '1asdfasdf.apps.googleusercontent.com';
const SCOPES = ['https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/documents'];
const AUTH_PROPERTIES = {
<div class="container">
<aside class="side">
<button (click)="createDoc()">Create Doc</button>
<ul>
<li *ngFor="let file of files">
{{file.name}} – {{file.id}}
</li>
</ul>
</aside>
<main class="main">