Angular: How to Store Complex Objects in localStorage or sessionStorage You're not limited to strings.