Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewjbateman/ionic-angular-accordian

:clipboard: App to show accordian UI and some artistic modifications
https://github.com/andrewjbateman/ionic-angular-accordian

accordian-widget accordion-element angular angular16 ionic scss-styles tutorial-code typescript4 widget

Last synced: 2 months ago
JSON representation

:clipboard: App to show accordian UI and some artistic modifications

Awesome Lists containing this project

README

        

# :zap: Ionic Angular Accordian

* App to create a simple accordian widget using the [Ionic framework](https://ionicframework.com/docs).
* Accordions are often used in the UI for grouping and display of related information.
* Tutorial code from [Mastering Ionic](https://masteringionic.com/) - see [:clap: Inspiration](#clap-inspiration) below.
* **Note:** to open web links in a new window use: _ctrl+click on link_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/ionic-angular-accordian?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-accordian?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-accordian?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-accordian?style=plastic)

## :page_facing_up: Table of contents

* [:zap: Ionic Angular Accordian](#zap-ionic-angular-accordian)
* [:page\_facing\_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal\_strength: Technologies](#signal_strength-technologies)
* [:floppy\_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status \& To-do list](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file\_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)

## :books: General info

* Added to the `app.module.ts` is a [CUSTOM_ELEMENTS_SCHEMA](https://angular.io/api/core/CUSTOM_ELEMENTS_SCHEMA) allows custom component to be recognised by Angular when transpiling the code

## :camera: Screenshots

![Home Page](./img/accordion.png)

## :signal_strength: Technologies

* [Ionic/angular v7](https://www.npmjs.com/package/@ionic/angular)
* [Angular v16](https://angular.io/)

## :floppy_disk: Setup

* To start the server on _localhost://8100_ type: 'ionic serve' or on _localhost://4200_ type: 'ng serve'

## :computer: Code Examples

* extract from `home.page.html`: for loop used to display info on each technology from the simple array created in the ts file.

```html

```

## :cool: Features

* Data is stored in an array of objects but this could be replaced with json data from an API call.
* Use of `@input` to pass current name, description & image link strings from `home` to the accordian widget
* Updated to latest Ionic/Angular versions with dependency updates and all dependency vulnerabilities resolved.

## :clipboard: Status & To-do list

* Status: Working.
* To-do: work out how to add HTML links inside the accordion, maybe by using a function.

## :clap: Inspiration

Project inspired by [Mastering Ionic's 'Creating a simple accordion widget in Ionic 4'](http://masteringionic.com/blog/2019-01-27-creating-a-simple-accordion-widget-in-ionic-4/).

## :file_folder: License

* This project is licensed under the terms of the MIT license.

## :envelope: Contact

* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `[email protected]`