Tasks
Why refactoring became necessary
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)
- On startup open the first tab
- Specify attribute with two way data binding
- Look at the URL and select the tab according to hashtag
References
Tasks
Why refactoring became necessary
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)
References