(function () { 'use strict'; let NextStep = function ($scope, timelineService, $location, $routeParams) { $scope.timelineId = $routeParams.id; timelineService.get($scope.timelineId).then((timeline) => $scope.timeline = timeline); $scope.callback = function (prompt) { $location.url('/storylines/add/first'); } $scope.callbackContinue = function (prompt) { $location.url(`/invite`); } timelineService.getAll().then((timelines) => $scope.timelines = timelines ); }; NextStep.$inject = ['$scope', 'timelineService', '$location', '$routeParams']; angular.module('streamApp').controller('nextStepsController', NextStep); })();