This commit is contained in:
Max Lynch
2015-11-28 16:17:04 -06:00
parent f7f1acb1b6
commit 33b56579b0
84 changed files with 691 additions and 80 deletions
+24
View File
@@ -0,0 +1,24 @@
import {Page, NavParams} from 'ionic/ionic';
@Page({
templateUrl: 'app/plugin/plugin.html',
})
export class Plugin {
constructor(params: NavParams) {
this.plugin = params.get('plugin');
console.log('Plugin', this.plugin);
this.methods = Object.keys(this.plugin).filter((k) => {
if(typeof this.plugin[k] === 'function') {
return true;
}
return false;
});
}
doMethod(method) {
console.log('Doing method', method, 'on Plugin', this.plugin);
}
}