title: Query about storing some data and securing the application Angular-SpringBoot
body: <p>I'm learning and developing an application using Angular 4 - Spring Boot with REST webservices. The database being used is MS SQL Server 2016. Now I'm new to this world of web development using Angular so have few questions. I apologise if they are noobish.</p>
  
  <ol>
  <li><p>In Java we used to have <code>Session</code> to store some stuff like <code>username</code> and all. In here I'm using <code>Local Storage</code> but in some data like lists or arrays of objects I'm facing issue of synchronization across all components. Then I came across <code>Redux</code>. So can I solve my problem by storing my data using redux?</p></li>
  <li><p>For securing my application I was thinking of using JSON Web Tokens. My understanding is that I have to encode my REST webservices from Spring end and then decode it with at Angular side. is my understanding correct ? If yes, then how do I decode it at Angular side?</p></li>
  </ol>
  
  <p>Thanks a ton for all the help :)</p>