docs(safariview): usage fix (#1923)

The show method returns a Observable, not a Promise.
This commit is contained in:
Leonardo Ruhland 2017-08-26 04:55:06 -03:00 committed by Ibby Hadeed
parent 4942b88873
commit 332f9aefe5

View File

@ -38,7 +38,7 @@ export interface SafariViewControllerOptions {
* enterReaderModeIfAvailable: true,
* tintColor: '#ff0000'
* })
* .then((result: any) => {
* .subscribe((result: any) => {
* if(result.event === 'opened') console.log('Opened');
* else if(result.event === 'loaded') console.log('Loaded');
* else if(result.event === 'closed') console.log('Closed');