(function () { "use strict"; var Plans = function ($scope, $location, accountService, timeService) { $('.waiting').show(); $scope.model = { tempName: '' }; const planType = ["Standard Plan", "Premium Plan"]; $scope.plan = {}; accountService.getPlanPurchaseOptions().then(function (options) { $('.waiting').hide(); $scope.heading = options.Name; $scope.amount = Number.parseFloat(options.amount).toFixed(2); $scope.expiration = timeService.getDateFromString(options.ExpirationDate); }); $scope.callback = function () { $location.url('/gettingStarted'); }; }; Plans.$inject = ['$scope', '$location', 'accountService', 'timeService']; angular.module('streamApp').controller('planController', Plans); })();