DEV Community

selvamp
selvamp

Posted on

Convert angularJs1.4 code to ionic 4 angular 7

Hi
The mobile app developed Angularjs 1.4. The plugin also developed Angularjs 1.4. the plugin part of code used in angularjs app. Now I am newly developed ionic 4 & angular 7 code. I want to convert plugin part code into angular 7. the code is below:This is customized plugin to access server. here is full code:

if (pluginName == 'getDeviceModelAndOSVersion') {
var vectorAppRootScope = angular.element(document.querySelector('[app-root]')).scope().$root;
browser.executeScript({ code: successFunctionName + '("' + vectorAppRootScope.this.device.model + '","' + vectorAppRootScope.this.device.version + '");'
});
}

Please help

Top comments (0)