How to persist data in your NativeScript mobile app -- Words (102)

How to persist data in your NativeScript mobile app

Data persitence is a necessity in many mobile applications.NativeScript offers many mechanisms that allow developers to persist data in mobile applications:

Using filesystem


Using sqlite


Using Loki database


What is Loki LokiJS is a document oriented database written in javascript, published under MIT License. Its purpose is to store javascript objects as documents in a nosql fashion and retrieve them with a similar mechanism. - LokiJS

npm install nativescript-loki --save

Using NativeScript application settings