This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Inject(...args) { | |
return (target, propertyKey?: string, descriptor?: PropertyDescriptor) => { | |
if(propertyKey){ | |
var original_method:Function = descriptor.value; | |
descriptor.value = function(...params){ | |
original_method.apply(target, params.concat(args)); | |
}; | |
}else{ | |
// save a reference to the original constructor | |
var original_method = target; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1-install JDK | |
2-set JAVA_HOME=/jdk and add /jdk/bin to PATH | |
3-install Android Studio | |
4-add platform-tools and tool to PATH | |
5-install node | |
6-install cordova | |
7-install ionic@beta |