V-Squared / V-Squared.github.io

Initiative for Modular and Upgradable Mini and All-In-One PC. Standards — Know How — Blueprints — Trailblazer Products
http://v-squared.github.io/
Other
2 stars 1 forks source link

Refactoring Tabbed Slide Show on V² Home Page (aka Big Picture) #216

Open VillageHubertChen opened 8 years ago

VillageHubertChen commented 8 years ago

Tasks

The current version was based on $location. This angular object automatically turned on Angular Routing. In turn this broke anchors on a page based on hashtag. This is discussed in detail in → Ben Nadel > Using Anchor Tags And URL-Fragment Links In AngularJS.

To fix → Bug: Stop Angular from Rerouting Hashtag #154 we had to turn off angular routing. As such we needed to remove $location. In turn we broke the Tabbed Slide Show on the Home Page. And that is why we need to refactor it.

Replacing $location with Angular Scroll Service

??? Lukas, do explain!

Order of initialization (least to most important)

  1. On startup open the first tab
  2. Specify attribute with two way data binding
  3. Look at the URL and select the tab according to hashtag

    References

    • V² Home Page Scroll to tabbed slide show.
    • The Big Picture of V² (Part of V² Home Page) #35
    • Refactoring V² Home Page #123