# ngx-newsticker-albe

> News Ticker component to help you accentuate posts and messages.

Latest version **2.9.0** (published 2024-06-01) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install ngx-newsticker-albe
pnpm add ngx-newsticker-albe
yarn add ngx-newsticker-albe
bun add ngx-newsticker-albe
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.9.0 |
| Published | 2024-06-01 |
| First published | 2018-05-11 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 58 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Albertino Júnior |
| Maintainers | albejr |
| Keywords | angular, breakingnews, marquee, newsticker |

## Links

- npm: https://www.npmjs.com/package/ngx-newsticker-albe
- Repository: https://github.com/Albejr/ngx-newsticker
- Homepage: https://github.com/Albejr/ngx-newsticker#readme
- Issues: https://github.com/Albejr/ngx-newsticker/issues
- npm.io page: https://npm.io/package/ngx-newsticker-albe

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.9.0 (latest) — 2024-06-01
- 2.8.0 — 2024-03-20
- 2.7.0 — 2023-05-05
- 2.6.0 — 2023-04-07
- 2.5.0 — 2022-09-09
- 2.4.2 — 2022-09-09
- 2.4.1 — 2022-09-09
- 2.4.0 — 2022-09-09
- 2.3.3 — 2022-08-27
- 2.3.2 — 2022-08-27
- 2.3.1 — 2022-08-27
- 2.3.0 — 2022-08-27
- 2.2.7 — 2020-09-17
- 2.2.6 — 2020-09-17
- 2.2.5 — 2020-09-17
- … 15 more at https://npm.io/package/ngx-newsticker-albe/versions

## README

# Albe News Ticker <sup>2.9.0</sup>

![newsticker](https://user-images.githubusercontent.com/24717256/40119160-4dac26aa-58f2-11e8-96a0-8893b7e383bf.jpg)

Version history:
| Library | Angular |
| ------- | ------- |
| Lastet | 18.0.1 |
| 2.8.0 | 17.3.0 |
| 2.7.0 | 16.0.0 |
| 2.6.0 | 15.2.6 |
| 2.5.0 | 14.2.1 |
| 2.4.2 | 11.2.14 |
| 2.2.7 | 10.1.2 |
| 2.2.5 | 10.1.1 |
| 2.1.2 | 8.1.2 |
| 1.1.1 | 6.0.1 |

## Installation
```html
$ npm install ngx-newsticker-albe
```

## Usage
### Import the module
```typescript
import { NgxNewstickerAlbeModule } from 'ngx-newsticker-albe';

@NgModule({
    imports: [ NgxNewstickerAlbeModule ],
    ...
})
export class AppModule {}
```

### Template
```html
<ngx-newsticker title="Live News" [events]="eventList"></ngx-newsticker>
```

### Component
```typescript
export class AppComponent implements OnInit {
  eventList = new Array<string>();

  ngOnInit() {
    this.eventList.push(`Lorem ipsum dolor sit amet, <s>consectetur</s> adipiscing elit. Phasellus sit amet nibh dolor.`);
    this.eventList.push(`<span>${new Date().toLocaleString()}</span> - Sed et ligula non risus ullamcorper rhoncus quis vel ante.`);
    this.eventList.push(`<i>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.<i>`);
    this.eventList.push(`Fusce a odio interdum, <a href="#">I'm Anchor</a> rutrum lorem quis, gravida tellus.`);
  }
}
```

### Options

| Name           |          | Type          | Default   | Description                                                     |
| -------------- | -------- | ------------- | --------- | --------------------------------------------------------------- |
| [events]       | required | Array<String> | [ ]       | List of messages to be displayed.                               |
| [title]        | optional | String        | ''        | Highlighted text.                                               |
| [interval]     | optional | Number        | 3000      | Set the time (milliseconds) interval between the text exchange. |
| [showCounter]  | optional | Boolean       | true      | Sets the current count visibility.                              |
| [defaultColor] | optional | String        | '#1976D2' | Change the default blue color.                                  |
| [backColor]    | optional | String        | '#FFFFFF' | Change the back ground color of content.                        |

## Styling guide

There are several classes that help you to create your custom styles
`app.component.css`
```css
:host ::ng-deep .newsticker>.nt-content>label {
  color: #D32F2F;
}
```

## Demo App
Follow these instructions to run the demo:

1. Clone the repository to your local machine
2. From the project folder, run `npm i` to install all required dependencies
3. Run `ng b ngx-newsticker-albe` to build in **dist** folder.
4. Run `ng s` to serve the project from a live-updating server.
5. Go to `localhost:4200` to see the demo site

---
_Source: https://npm.io/package/ngx-newsticker-albe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
