Lovefield in angular

56 views
Skip to first unread message

shrani...@gmail.com

unread,
Jun 9, 2020, 9:47:00 AM6/9/20
to lovefield-users
Hi,

I am relatively new to client-side databases. I require relational database for my offline web application. I came across lovefield and felt love field would exactly fit into my purpose, but I am unable to find the path to start with my Angular project.
I came across the following javascript code

However I am unable to use this in Angular.

Has anyone used lovefield for angular 6, If yes kindly please help me to start with lovefield as to what exactly should be imported in module.
Thanks in advance,
Shranith Krishna

Brendon Jung

unread,
Jun 28, 2020, 11:05:30 PM6/28/20
to lovefield-users
I don't think there is a "proper" way per se. This is how I'm using it:

- install lovefield in app via npm
- create a service (I called it lovefield)
-import lf from "lovefield"

Once you have the "lf" object available in your service, you can use the object's methods to use the client side db. 
Reply all
Reply to author
Forward
0 new messages