I think this is only necessary without ng-view, which seemed really hacky.