2.2.3 • Published 5 months ago
@ovh-ux/ng-tail-logs v2.2.3
ng-tail-logs
AngularJS tail logs module.
Poll a log API for displaying messages
Install
$ yarn add @ovh-ux/ng-tail-logsUsage
import angular from 'angular';
import ngTailLogs from '@ovh-ux/ng-tail-logs';
angular.module('myApp', [ngTailLogs]).controller(
'MyCtrl',
/* @ngInject */ ($q, TailLogs) => {
this.logger = new TailLogs({
source: () => $q.when('http://my-log-url'),
delay: 2000,
});
},
);<div data-ng-controller="MyCtrl as $ctrl">
<tail-logs>
<div data-ng-repeat="log in $ctrl.logger.logs track by $index"
data-ng-bind="log.message">
</div>
</tail-logs>
</div>Test
$ yarn testContributing
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.
License
BSD-3-Clause © OVH SAS
2.2.1
12 months ago
2.2.3
5 months ago
2.2.2
7 months ago
2.2.0
1 year ago
2.1.1
2 years ago
2.0.10
2 years ago
2.1.0
2 years ago
2.0.9
3 years ago
2.0.8
3 years ago
2.0.7
4 years ago
2.0.6
4 years ago
2.0.5
4 years ago
2.0.4
5 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
2.0.0-beta.1
7 years ago
2.0.0-beta.0
7 years ago