All of our content pages have a particular header, X-Foo
. When the content of the ng-view
changes, we want to display the new page's X-Foo
header in a different element. How can we get this value whenever the content changes?
EDIT: Since this was apparently unclear, the header is expected in the response, not the request.