I'm currently working on creating a dynamic timeline using AngularJS. The data from my timeline is fetched from a JSON file, which I have already been successfully able at configuring. Here is what I currently have on PLNKR: http://plnkr.co/edit/avRkVJNJMs4Ig5mDrwJ8
This is my current navigation:
<nav id="sticky-navigation">
<ul>
<li><a href="#decade-1960s">1960</a></li>
<li><a href="#decade-1970s">1970</a></li>
<li><a href="#decade-1980s">1980</a></li>
<li><a href="#decade-1990s">1990</a></li>
<li><a href="#decade-2000s">2000</a></li>
<li class="active"><a href="#decade-2010s">2010-Now</a></li>
</ul>
</nav>
I basically want to create wrapper divs for the unique ID's of "decade-1960s", "decade-1970s" etc so that the user can use the navigation to efficiently navigate to the decade they are most interested in looking at. The date is parsed from the JSON file, so I am wondering it there is another to fetch the year from the JSON, organize the events according to particular decades, and then add a wrapper for each decade.
Thanks very much! I know it sounds very complicated! But I'm more of a front-end developer and designer, not so much a back-end programmer.