Nightclub Party Music

    ovh-angular-tail-logs

    1.1.1 • Public • Published

    ovh-angular-tail-logs

    OVH component

    NPM

    Maintenance Chat on gitter

    Poll a log API for displaying messages

    Build Status

        angular.module("myapp", ["ovh-angular-tail-logs"]).controller("myCtrl", function ($q, OvhTailLogs) {
            this.logger = new OvhTailLogs({
                source: function () {
                    return $q.when("http://my-log-url");
                },
                delay: 2000
            });
     
        });
    <div data-ng-controller="myCtrl as Ctrl">
        <ovh-tail-logs>
            <div data-ng-repeat="log in Ctrl.logger.logs track by $index"
                data-ng-bind="log.message">
            </div>
        </ovh-tail-logs>
    </div>

    Installation

    Bower

    bower install ovh-angular-tail-logs --save
    

    NPM

    npm install ovh-angular-tail-logs --save
    

    Configuration

    1. Include ovh-angular-tail-logs.css in your app:

    <link rel="stylesheet" href="bower_components/ovh-angular-tail-logs/dist/ovh-angular-tail-logs.css"/>

    1. Include ovh-angular-tail-logs.js in your app:

    <script src="bower_components/ovh-angular-tail-logs/dist/ovh-angular-tail-logs.js"></script>

    1. Add ovh-angular-tail-logs as a new module dependency in your angular app.

    var myapp = angular.module('myapp', ['ovh-angular-tail-logs']);

    Get the sources

        git clone https://github.com/ovh/ovh-angular-tail-logs.git
        cd ovh-angular-tail-logs
        npm install
        bower install

    You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !

    Have a look in CONTRIBUTING.md

    Build the documentation

    grunt ngdocs
    

    Related links

    License

    See https://github.com/ovh-ux/ovh-angular-tail-logs/blob/master/LICENSE

    Keywords

    Install

    npm i ovh-angular-tail-logs

    DownloadsWeekly Downloads

    1

    Version

    1.1.1

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • marie-j
    • jisay
    • axelpeter
    • blary_jp
    • antleblanc
    • cbourgois
    • ovh-ux-cds
    • lizardk
    • ovh
    • gioindahouz
    • jleveugle
    • bnjjj
    • khuang