I am relatively new to using angular.js and I could use some guidance on the best approach to implementing the functionality described in this scenario. My HTML structure consists of a header, sidebar, and content area provided by
<div class="container-fluid" ng-view></div>
. Since this layout follows the standard twitter-bootstrap format, the ng-view
element is not a direct child of the body
element.
I need to create a view that features an infinitely scrollable list. When a list item is selected, I want to reveal a fixed footer with context-specific actions (the footer should always be displayed above the list). Essentially, this is similar to the behavior seen on the Windows 8 Metro home-screen when right-clicking on a tile.
The challenge I am facing is that the footer cannot be included in the ng-view
partial because it needs to reside directly under the body
in the DOM. What would be a good approach to handling this situation with Angular.js and ng-view
, especially if I prefer to use a single controller for both the list and the dynamic footer? If there is a CSS-based solution available, I would appreciate any suggestions on that front as well.