From 853ed2eb37571566b03fdfce35201b952291bcf5 Mon Sep 17 00:00:00 2001 From: slrls Date: Mon, 1 Jun 2015 13:21:33 -0400 Subject: [PATCH] Add Angular example using track by --- angular-track-by/app.js | 9 ++++++++ angular-track-by/index.html | 46 +++++++++++++++++++++++++++++++++++++ index.html | 1 + 3 files changed, 56 insertions(+) create mode 100644 angular-track-by/app.js create mode 100644 angular-track-by/index.html diff --git a/angular-track-by/app.js b/angular-track-by/app.js new file mode 100644 index 00000000..2333846d --- /dev/null +++ b/angular-track-by/app.js @@ -0,0 +1,9 @@ +angular.module('app', []).controller('DBMonCtrl', function ($scope, $timeout) { + $scope.databases = []; + var load = function() { + $scope.databases = ENV.generateData().toArray(); + Monitoring.renderRate.ping(); + $timeout(load, ENV.timeout); + }; + load(); +}); diff --git a/angular-track-by/index.html b/angular-track-by/index.html new file mode 100644 index 00000000..ba967e11 --- /dev/null +++ b/angular-track-by/index.html @@ -0,0 +1,46 @@ + + + + + + + + + dbmon (angular) + + + +
+ + + + + + + + + + + +
+ {{db.dbname}} + + + {{db.lastSample.queries.length}} + + + {{q.formatElapsed}} +
+
+ {{q.query}} +
+
+
+
+
+ + + + + + diff --git a/index.html b/index.html index d8bcacd8..8cf2b44f 100644 --- a/index.html +++ b/index.html @@ -92,6 +92,7 @@