Is it possible to display specific fields on a page depending on the value stored in $localStorage?
For example, consider the following code snippet:
<div ng-controller="myCtrl">
<ul>
<li> List 1 </li>
<li> List 2 </li>
<li> List 3 </li>
<li> List 4 </li>
</ul>
</div>
If I only want to show List 3
and List 4
when the value of $localStorage is not equal to 0
, how can I achieve this?