Commit be8b8e91 authored by Robert Knight's avatar Robert Knight

Fix top bar failing to display in /stream route

This broke in dff1f428 because the
`$location` Angular service became unavailable to the
`StreamSearchInput` component as it was not registered in the new
dependency injection container.
parent 5407f085
......@@ -252,9 +252,10 @@ function startAngularApp(config) {
// constructed them.
//
// @ngInject
function registerAngularServices($rootScope, toastr) {
function registerAngularServices($location, $rootScope, toastr) {
container
.register('toastr', { value: toastr })
.register('$location', { value: $location })
.register('$rootScope', { value: $rootScope });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment