When a fully validated bank account object is created, we can store it in local storage, also called the Web Storage API, that is widely supported in modern browsers. In this mechanism, the application's data are persisted locally (on the client-side) as a Map-like structure: a dictionary of key/value pairs. This is yet another example of the universal use of JSON for storage and transport of data (see Chapter 4, Modeling Web Applications with Model Concepts and Dartlero). Unlike cookies, local storage does not expire, but every application can only access its own data, up to a certain limit depending on the browser. With it, our application can also have an offline mode of functioning, when the server is not available to store the data in a database. Web Storage also has another way of storing data called sessionStorage
, but this limits the persistence of the data to only the current browser session. So data is lost when the browser is closed...
Learning Dart
Learning Dart
Overview of this book
Table of Contents (19 chapters)
Learning Dart
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Dart – A Modern Web Programming Language
Getting to Work with Dart
Structuring Code with Classes and Libraries
Modeling Web Applications with Model Concepts and Dartlero
Handling the DOM in a New Way
Combining HTML5 Forms with Dart
Building Games with HTML5 and Dart
Developing Business Applications with Polymer Web Components
Modeling More Complex Applications with Dartling
MVC Web and UI Frameworks in Dart – An Overview
Local Data and Client-Server Communication
Data-driven Web Applications with MySQL and MongoDB
Index
Customer Reviews