mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-22 19:22:53 +08:00
28 lines
482 B
JavaScript
28 lines
482 B
JavaScript
import {Page, NavController} from 'ionic/ionic'
|
|
|
|
import {Camera, StatusBar, Toast} from 'ionic-native';
|
|
|
|
import {Plugin} from '../plugin/plugin';
|
|
|
|
@Page({
|
|
templateUrl: 'app/home/home.html',
|
|
})
|
|
export class HomePage {
|
|
constructor(nav: NavController) {
|
|
this.nav = nav;
|
|
|
|
this.plugins = [
|
|
Camera,
|
|
StatusBar,
|
|
Toast
|
|
];
|
|
console.log('PLUGINS', this.plugins);
|
|
}
|
|
|
|
choosePlugin(plugin) {
|
|
this.nav.push(Plugin, {
|
|
plugin: plugin
|
|
});
|
|
}
|
|
}
|