I installed the cordova-plugin-sqlserver library in the following address. https://www.npmjs.com/package/cordova-plugin-sqlserver
But I do not know how to import it into the project.
Eg.
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { BaglantiProvider } from '../../providers/baglanti/baglanti';
import { SqlServer } from 'what shall i write ???????? ';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController, public baglanti : BaglantiProvider) {
}
test(){
SqlServer.init("192.168.0.120", "SQLEXPRESS", "sa", "01234567", "dinademo", function(event) {
alert(JSON.stringify(event));
}, function(error) {
alert(JSON.stringify(error));
});
}
}