(function () { 'use strict'; let SelectMemory = function ($scope, timelineService, $routeParams, $location) { $scope.id = $routeParams.id; timelineService.get($scope.id).then((timeline) => $scope.timeline = timeline); $scope.callback = function (prompt) { $location.url('storylines/' + $scope.id + '/memories/add?questionId=' + prompt.promptId); } }; SelectMemory.$inject = ['$scope', 'timelineService', '$routeParams', '$location']; angular.module('streamApp').controller('selectMemoryController', SelectMemory); })();