style(): unify docs and spacing (#1448)

* typo(barcode-scanner): fixe circle lint error

* typo(docs):  Unified the documentations

In some plugins the typescript markup was missing.
I also unified the console.log string from console.log("hello") to console.log('Hello') so any plugin page look the same.
This commit is contained in:
Daniel Sogl
2017-04-30 20:36:22 +02:00
committed by Ibby Hadeed
parent a7c9abc449
commit c6f9fa356f
90 changed files with 497 additions and 506 deletions
@@ -10,7 +10,7 @@ import { Injectable } from '@angular/core';
* cdvphotolibrary urls should be trusted by Angular. See plugin homepage to learn how.
*
* @usage
* ```
* ```typescript
* import { PhotoLibrary } from '@ionic-native/photo-library';
*
* constructor(private photoLibrary: PhotoLibrary) { }
@@ -32,10 +32,10 @@ import { Injectable } from '@angular/core';
* });
* },
* error: err => {},
* complete: () => { console.log("could not get photos"); }
* complete: () => { console.log('could not get photos'); }
* });
* })
* .catch(err => console.log("permissions weren't granted"));
* .catch(err => console.log('permissions weren't granted'));
*
* ```
*/
@@ -57,8 +57,8 @@ export class PhotoLibrary extends IonicNativePlugin {
*/
@CordovaFiniteObservable({
callbackOrder: 'reverse',
resultFinalPredicate: (result: {isLastChunk: boolean}) => { return result.isLastChunk; },
resultTransform: (result: {library: LibraryItem[]}) => { return result.library; },
resultFinalPredicate: (result: { isLastChunk: boolean }) => { return result.isLastChunk; },
resultTransform: (result: { library: LibraryItem[] }) => { return result.library; },
})
getLibrary(options?: GetLibraryOptions): Observable<LibraryItem[]> { return; }