Is there a way to get the header of the current page in angularjs, without having to do a separate call? I can't find this in the docs anywhere, but it seems like it should be possible.
E.g. if the file index.html
contains the angular code, how do I read the header of the initial request to get index.html
? I could use $http
to make the call again, but that seems unnecessary.