Skip to content

Instantly share code, notes, and snippets.

Scott Smith scottadamsmith

Block or report user

Report or block scottadamsmith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pdfjs-viewer.vue
<template>
<div class="pdfjs-viewer-container">
<div class="pdfjs-viewer-toolbar">
<button @click="zoomOut">Zoom Out</button>
<button @click="zoomIn">Zoom In</button>
<button @click="changeScale('page-fit')">Page Fit</button>
<button @click="changeScale('page-width')">Page Width</button>
<button @click="changeScale('page-height')">Page Height</button>
<button @click="changeScale(1)">Actual</button>
<button :disabled="!firstPage" @click="changePage(firstPage)">First Page</button>
@scottadamsmith
scottadamsmith / index.js
Created Apr 23, 2017
ES6 imports w/ ES5 Angular service
View index.js
import SampleModule from 'modules/some.module';
angular.module('main-app', [SampleModule])
.run();
You can’t perform that action at this time.