UNPKG

fruitstand

Version:
17 lines (16 loc) 535 B
var myModule = angular.module('myApp', []); myModule.config(function($provide) { $provide.value("configTime", new Date()); $provide.value("runTime", new Date()); for(var x=0; x<1000000000; x++){ var y = Math.sqrt(Math.log(x)); } }); myModule.run(function(configTime, runTime) { runTime.setTime((new Date()).getTime()); }); myModule.controller('controllerA',['$scope', 'configTime', 'runTime', function($scope, configTime, runTime){ $scope.configTime = configTime; $scope.runTime = runTime; }]);