diff --git a/src/ng1.ts b/src/ng1.ts index cd3bc0ce..9bca8116 100644 --- a/src/ng1.ts +++ b/src/ng1.ts @@ -1,7 +1,7 @@ declare var window; /** - * Initialize the ngCordova Angular module if we're running in ng1. + * Initialize the ionic.native Angular module if we're running in ng1. * This iterates through the list of registered plugins and dynamically * creates Angular 1 services of the form $cordovaSERVICE, ex: $cordovStatusBar. */ @@ -9,7 +9,7 @@ export function initAngular1(plugins) { if (window.angular) { window.angular.module('ionic.native', []); - for(var name in plugins) { + for (var name in plugins) { let serviceName = '$cordova' + name; let cls = plugins[name]; @@ -21,8 +21,8 @@ export function initAngular1(plugins) { } funcs['name'] = name; return funcs; - }]) + }]); })(serviceName, cls, name); } } -} +} \ No newline at end of file diff --git a/src/plugins/safari-view-controller.ts b/src/plugins/safari-view-controller.ts index ac718122..5af60f6f 100644 --- a/src/plugins/safari-view-controller.ts +++ b/src/plugins/safari-view-controller.ts @@ -15,7 +15,7 @@ import {Plugin, Cordova} from './plugin'; * if(available){ * * SafariViewController.show({ - * utl: 'http://ionic.io', + * url: 'http://ionic.io', * hidden: false, * animated: false, * transition: 'curl',