You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many good plugins out there that we want to implement are instance based.
For example, look at the usage of the SQLite plugin:
// first we create a database objectvardb=window.sqlitePlugin.openDatabase(....);// then we call it's methodsdb.executeSql(...);
Now if we were to wrap this plugin and add it to Ionic Native, we wouldn't really be improving anything since we can't wrap the internal (prototype) methods. Not being able to wrap these internal methods means that we still have to use callback functions. Therefore, the Angular 2 change detection will not be triggered.
So the purpose of this discussion to gather ideas on how we can approach these type of plugins in a better way.
All thoughts and suggestions are welcome!
The text was updated successfully, but these errors were encountered:
Many good plugins out there that we want to implement are instance based.
For example, look at the usage of the SQLite plugin:
Now if we were to wrap this plugin and add it to Ionic Native, we wouldn't really be improving anything since we can't wrap the internal (prototype) methods. Not being able to wrap these internal methods means that we still have to use callback functions. Therefore, the Angular 2 change detection will not be triggered.
So the purpose of this discussion to gather ideas on how we can approach these type of plugins in a better way.
All thoughts and suggestions are welcome!
The text was updated successfully, but these errors were encountered: