Skip to content

This Angular project contains a carousel component for displaying news items with images and links.

License

Notifications You must be signed in to change notification settings

DTIG-US/web-carousel

Angular Carousel Component

This Angular project contains a carousel component for displaying news items with images and links.

Click here for the CHANGE LOG

Click here for the CLIFF NOTES

Overview

The project consists of the following files and components:

  • carousel.component.ts - The main component responsible for displaying the news carousel.
  • carousel.component.html - The HTML template for the carousel component.
  • carousel.component.css - The CSS styles for the carousel component.
  • data.json - A JSON file containing news data.

Installation

  1. Clone this repository to your local machine:

git clone

  1. Navigate to the project directory:

cd angular-carousel-component

  1. Install the required dependencies:

npm install

Usage

  1. In the carousel.component.ts file, the CarouselComponent class is defined. It handles the initialization and configuration of the news carousel.

  2. The news data is loaded from the data.json file, which contains news items with titles, labels, descriptions, and URLs.

  3. The carousel is implemented using the ngx-slick-carousel library, which provides a slick carousel component for Angular. It's configured with options such as autoplay, center mode, and more.

  4. The slickInit, breakpoint, afterChange, and beforeChange methods in carousel.component.ts handle various carousel events and log messages to the console.

  5. The news items are displayed in the carousel in a responsive and user-friendly way, allowing users to click on news titles to view the full articles.

Configuration

You can customize the carousel's behavior and appearance by modifying the configuration options in the slideConfig object in carousel.component.ts. Additionally, you can style the carousel by editing the carousel.component.css file.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork this repository.
  2. Create a new branch for your feature or bug fix: git checkout -b feature-name.
  3. Make your changes and commit them: git commit -m "Description of changes".
  4. Push your changes to your fork: git push origin feature-name.
  5. Create a pull request on the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This Angular project contains a carousel component for displaying news items with images and links.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •