mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-20 11:09:34 +08:00
tslint
This commit is contained in:
parent
b49efd89a7
commit
81f5d4acd1
@ -1,7 +1,7 @@
|
|||||||
declare var window;
|
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
|
* This iterates through the list of registered plugins and dynamically
|
||||||
* creates Angular 1 services of the form $cordovaSERVICE, ex: $cordovStatusBar.
|
* creates Angular 1 services of the form $cordovaSERVICE, ex: $cordovStatusBar.
|
||||||
*/
|
*/
|
||||||
@ -9,7 +9,7 @@ export function initAngular1(plugins) {
|
|||||||
if (window.angular) {
|
if (window.angular) {
|
||||||
window.angular.module('ionic.native', []);
|
window.angular.module('ionic.native', []);
|
||||||
|
|
||||||
for(var name in plugins) {
|
for (var name in plugins) {
|
||||||
let serviceName = '$cordova' + name;
|
let serviceName = '$cordova' + name;
|
||||||
let cls = plugins[name];
|
let cls = plugins[name];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user