Sha256: 997d0cc8f5f20e21bb32c19a5c949b25f74718acd010490b6dcc227f643c481d

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

'use strict';

angular.module('herald.nodes', [
  'ngRoute',
  'herald.directives',
  'angularMoment'
])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/nodes', {
    templateUrl: 'nodes/nodes.html',
    controller: 'NodesController'
  });
}])

.controller('NodesController', ['$http', 'appService', function($http, appService) {
  appService.page = 'nodes';
  var ctrl = this;
  ctrl.all = [];

  $http.get('/api/v1/nodes').success(function(data) {
    ctrl.all = data;
  });
}]);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-herald-0.1.1 lib/puppet-herald/public/nodes/nodes.js
puppet-herald-0.1.0 lib/puppet-herald/public/nodes/nodes.js