import {getIntParameter, getStringParameter, bindAction} from 'angular2/src/test_lib/benchmark_util'; var totalRows = getIntParameter('rows'); var totalColumns = getIntParameter('columns'); var benchmarkType = getStringParameter('benchmarkType'); export function main() { angular.bootstrap(document.querySelector('largetable'), ['app']); } angular.module('app', []) .config(function($compileProvider) { if ($compileProvider.debugInfoEnabled) { $compileProvider.debugInfoEnabled(false); } }) .filter('noop', function() { return function(input) { return input; }; }) .directive('largetable', function() { return { restrict: 'E', templateUrl: 'largetable-js-template.html', controller: 'DataController' }; }) .controller('DataController', function($scope) { bindAction('#destroyDom', destroyDom); bindAction('#createDom', createDom); function destroyDom() { $scope.$apply(function() { $scope.benchmarkType = 'none'; }); } function createDom() { $scope.$apply(function() { $scope.benchmarkType = benchmarkType; }); } var data = $scope.data = []; function iGetter() { return this.i; } function jGetter() { return this.j; } for (var i=0; i