Skip to content

Instantly share code, notes, and snippets.

View scottadamsmith's full-sized avatar

Scott Smith scottadamsmith

  • @ClickBoarding
  • Savage, Minnesota
View GitHub Profile
<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 April 23, 2017 03:08
ES6 imports w/ ES5 Angular service
import SampleModule from 'modules/some.module';
angular.module('main-app', [SampleModule])
.run();