New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ng-ticker-tape

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-ticker-tape

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.3.

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

NgTickerTape

This project was generated with Angular CLI version 10.0.3.

Demo

Check the ng-ticker-tape ticker

Installation

You can use either the npm or yarn command-line tool to install packages. Use whichever is appropriate for your project in the examples below.

NPM

npm i --save ng-ticker-tape

YARN

yarn add --save ng-ticker-tape

Usage

Follow below steps to add ticker-tape in your project

1. Import NgTickerTapeModule

You need to import the NgTickerTapeModule in the module of your app where you want to use it.

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

/* Import the module*/
import { NgTickerTapeModule } from 'ng-ticker-tape';

import { AppComponent } from './app.component';
import { CommonModule } from '@angular/common';

@NgModule({
    declarations: [
    AppComponent
    ],
    imports: [
    BrowserModule,
    NgTickerTapeModule // Import here,
    CommonModule
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule { }

2. Use in your HTML

In your HTML: Use the <ng-ticker-tape> wherever you like in your project.

<ng-ticker-tape  
     [tickerData]="tickerData">
</ng-ticker-tape>

3. Structure of array to display the ticker data

Make sure you structure of array should look like array shown below,

tickerData = [
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'red',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        },
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'green',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        },
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'green',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        },
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'red',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        },
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'green',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        },
        {
        'target_currency_short_name': ' BTT',
        'price': 0.00047020,
        'color': 'red',
        'percentage': 11.206+'%',
        'base_currency_short_name': '/USDT' 
        }
  ];

Contribution

I welcome you to fork and add more features into it. If you have any bugs or feature request, please create an issue at github repository.

License

MIT

Keywords

Angular2

FAQs

Package last updated on 13 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts