All Projects → AndrewJBateman → ionic-angular-cart

AndrewJBateman / ionic-angular-cart

Licence: MIT License
📋 Ionic 5 app to collect items in a shopping basket, tutorial code from Simon Grimm at the Ionic Academy

Programming Languages

typescript
32286 projects
HTML
75241 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ionic-angular-cart

ionic-angular-news-app
📋 Ionic-Angular app to fetch news articles from a REST API using Typescript interfaces to define the expected structure of the json objects returned & http service providers. Custom pipes used to modify API news article titles, contents and convert the Universal Time Constant (UTC) date string. Dark mode, Offline Storage of favourite articles & …
Stars: ✭ 21 (+50%)
Mutual labels:  ionic, typescript4
ionic-ecommerce
eCommerce client for IOS, Android and Windows Platform with Ionic
Stars: ✭ 66 (+371.43%)
Mutual labels:  ionic, ionic5
ionic-firebase-image-upload
Building an Ionic App with Protected/Private Content. This app shows how to use Firebase Storage from an Ionic Angular app both with public and private content.
Stars: ✭ 19 (+35.71%)
Mutual labels:  ionic, ionic5
app-screenshot-builder
Play Store and App Store application screenshot builder
Stars: ✭ 26 (+85.71%)
Mutual labels:  ionic
django ecommerce
Scalable Django E-Commerce, perfect to start one new online shop project.
Stars: ✭ 25 (+78.57%)
Mutual labels:  shopping-cart
NEMPay
Adaptable Android & iOS Mosaic Wallet for NEM Blockchain
Stars: ✭ 36 (+157.14%)
Mutual labels:  ionic
ionic-parallax
Parallax Module for Ionic Framework 2+
Stars: ✭ 10 (-28.57%)
Mutual labels:  ionic
cordova-plugin-today-widget
Add a today widget app extension target to your cordova project.
Stars: ✭ 51 (+264.29%)
Mutual labels:  ionic
ngrx-demo-apps
Demo to share module (ngrx state and reducers) between Ionic and Angular apps
Stars: ✭ 39 (+178.57%)
Mutual labels:  ionic
setup-ionic
Set up your GitHub Actions workflow with Cordova/Ionic environment
Stars: ✭ 23 (+64.29%)
Mutual labels:  ionic
ionic4-angular6-crud-example
Building CRUD Mobile App using Ionic 4, Angular 6 and Cordova
Stars: ✭ 50 (+257.14%)
Mutual labels:  ionic
ionic-surveyjs
Sample project that shows how to integrate SurveyJS in Ionic APP.
Stars: ✭ 28 (+100%)
Mutual labels:  ionic
typing-test
Typing test website build with React
Stars: ✭ 33 (+135.71%)
Mutual labels:  typescript4
ionic-native-sms-retriever-plugin-master
Cross-platform plugin for Cordova / PhoneGap to Retrieve SMS. Available for Android.
Stars: ✭ 16 (+14.29%)
Mutual labels:  ionic
ng-ionic-connectedanim
Connected Animation (Shared Element Transition) for Ionic Framework.
Stars: ✭ 12 (-14.29%)
Mutual labels:  ionic
awesome-ecommerce
Collect and develop Open Source or Free Projects for building ecommerce platform easy and fast and free
Stars: ✭ 39 (+178.57%)
Mutual labels:  shopping-cart
ngx-ionic-image-viewer
An Ionic 4 Angular component to view & zoom on images and photos without any additional dependencies.
Stars: ✭ 129 (+821.43%)
Mutual labels:  ionic
scanbot-sdk-example-ionic
Scanbot scanner SDK example app for Ionic with Cordova.
Stars: ✭ 24 (+71.43%)
Mutual labels:  ionic
pdf-viewer
PDF viewer web component built in StencilJS. Reusable in Angular, Ionic, React, Vue.JS, etc.
Stars: ✭ 65 (+364.29%)
Mutual labels:  ionic
ng-terminal
NgTerminal is a terminal component on Angular 12. the Ivy distribution's released from v5.0.0.
Stars: ✭ 87 (+521.43%)
Mutual labels:  angular13

Ionic Angular Cart

  • Ionic app to show a shopping cart where the user can select items and see them added to a cart.
  • Items can also be removed and the total price and product quantities will be updated.
  • This is another great tutorial from Simon Grimm - see 👏 Inspiration below.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • modal used to show shopping cart contents: product quantities can be increased or decreased and total price will be adjusted using a simple reduce function.
  • animate.css used to provide some fun visual effects when items are added to the cart and when the cart modal is activated and dismissed. There are options to control delays, speed of animation etc.
  • tsconfig.json modified to add "skipLibCheck": true, to get round ionicons incompatibility issue with latest Typescript version. This Ionicons issue will be fixed by Ionic.

📷 Screenshots

screenshot screenshot

📶 Technologies

💾 Setup

  • Run npm i to install dependencies
  • To start the server on localhost://8100 type: 'ionic serve'
  • To start the server on a mobile using Ionic devapp and connected via wifi, type: 'ionic serve --devapp'
  • The Ionic DevApp was installed on an Android device from the Google Play app store.

💻 Code Examples

  • Cart service: function to add a product to the shopping cart.
addProduct(product: Product) {
	let added = false;
	for (const item of this.cart) {
		if (item.id === product.id) {
			item.amount += 1;
			added = true;
			break;
		}
	}
	!added
		? this.cart.push(product)
		: this.cartItemCount.next(this.cartItemCount.value + 1);
}

🆒 Features

📋 Status & To-do list

  • Status: Working.
  • To-do: add a backend product list. Add to functionality, including a checkout and payment function.

👏 Inspiration

📁 License

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

✉️ Contact

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].