Skip to content

Instantly share code, notes, and snippets.

@alexciarlillo
Last active August 29, 2015 14:06
Show Gist options
  • Save alexciarlillo/19b2e082632128310796 to your computer and use it in GitHub Desktop.
Save alexciarlillo/19b2e082632128310796 to your computer and use it in GitHub Desktop.
var myApp = angular.module("myApp", [ 'ngRoute', 'myAppControllers', 'myAppServices', 'chartjs']);
myApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider.when('/', {
templateUrl: '/partials/dashboard.html',
controller: 'DashboardCtrl'
});
}]);
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="panel panel-info">
<div class="panel-heading">Raspberry Pi Stats</div>
<div class="panel-body">
<div ng-controller="tableController">
<table class="table table-responsive table-bordered table-condensed">
<thead>
<tr>
<td>Version</td>
<td>CPU Load</td>
<td>CPU Freq</td>
<td>CPU Temp</td>
</tr>
</thead>
<tbody>
<tr>
<td>{{ pi.version }}</td>
<td>{{ pi.cpuload }}</td>
<td>{{ pi.cpufreq }}</td>
<td>{{ pi.cputemp }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment