Find out the seven types of web storage available for your Angular 2 application, as well as details on when to use them and their limitations
- [Instructor] Web storage comes in…two flavors, SessionStorage and LocalStorage.…Both options are simple key value…pairs of strings.…Data in SessionStorage is always…deleted after the user closes the browser tab.…Data in LocalStorage persists between…browser sessions until deleted by the user or…via some trigger in the application code.…Web Storage is always isolated, and…each web domain can only access its own data.…URL Manipulation comes in three flavors,…Optional route parameters, query Strings,…and URL fragments.…
Query Strings and Optional route parameters…are both key-value stores and you can have…as many key-value pairs as you'd like…as long as there are no duplicate keys.…URL Fragments are single strings…with no key and there can only be…one fragment at a time for a given URL.…Keep in mind, there is a character limit…to the length of a URL, and each…browser has its own maximum length.…Be sure to confirm the character limits…for any browsers your application…needs to support.…
Although outside the scope of this course,…
- Overview of data storage options
- Saving and retrieving data from the browser
- Setting routes in the URL
- Using query strings and fragments instead of routes
- Saving and retrieving data from a server
- Working with user input
- Using JSONP instead of HTTP
- Why writing custom services is important
- Writing custom services for working with browsers and servers
Skill Level Intermediate
1. Getting Started
Application overview1m 39s
2. Data Storage Options
3. Storing Data in the Browser
4. Storing Data on a Server
5. Writing Custom Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.