From 39463cd2eb24326f2c128ad4266a2b587a87d724 Mon Sep 17 00:00:00 2001 From: Moesjarraf J Date: Thu, 13 Aug 2015 05:31:46 +0200 Subject: [PATCH] Update README.md --- README.md | 71 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 7047f1e..d68f961 100644 --- a/README.md +++ b/README.md @@ -15,32 +15,33 @@ Embed [PDF.js](https://mozilla.github.io/pdf.js/) into your angular application, Note that the order of the scripts being included should stay the same as in the example below. Also note that images, translations and such are being loaded from the `web` folder. -** View ** - - - - - Angular PDF.js demo - - - - - - - - - - - - - - - - - - - - +**View** +```html + + + + Angular PDF.js demo + + + + + + + + + + + + + + + + + + + + +``` The directive takes the following optional attributes to modify the toolbar @@ -48,16 +49,16 @@ The directive takes the following optional attributes to modify the toolbar Omitting these attributes will by default show the options in the toolbar. -** Controller ** - - angular.module('app', ['pdfjs']); - - angular.module('app').controller('AppCtrl', function($scope) { - $scope.pdf = { - src: 'demo/example.pdf' - }; - }); +**Controller** +```js +angular.module('app', ['pdfjs']); +angular.module('app').controller('AppCtrl', function($scope) { + $scope.pdf = { + src: 'demo/example.pdf' + }; +}); +``` ## Demo