Issue
I would like to connect my ionic V3 application to SQL Server database, where should I put the config object and how can I use the database in my application? What I need is to display the result from the query as table or grid in the homepage.
In summary:
- Connect the application to the database
- Make some query
- Display the result of the query in the homepage view
Solution
you can do this in tow ways :
1- using sqlite :
SqlServer.init("ipAddress","dbName","dbUser","password",result => {
console.log(JSON.stringify(result))})}
2- use this tutorial (here) this can be used for fetch data from API's (REST API for example ) of to build your own sql query and use it as API
Answered By - Ali Mhanna
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.