(function () { "use strict"; angular.module('streamApp').controller("timelineAddFirstController", TimelinesController); TimelinesController.$inject = ['$scope', 'userService', '$location']; function TimelinesController($scope, userService, $location) { $scope.callback = function (id) { $location.url(`/storylines/${id}/questions/first`); }; userService.getRelationships() .then(function (relationships) { $scope.relationships = relationships.filter(s => s.selected); }); } })();