How to build Dynamic Ionic 4 Slides with Shopping Cart

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024
  • In this tutorial we build a simple sliding design with Ionic 4 slides!
    🔥 Learn to build mobile apps with Ionic in my Ionic Academy: ionicacademy.com/
    💎 Get the Built with Ionic Book: builtwithionic...
    #############################
    Want to read instead of watch? Here's the full tutorial: devdactic.com/...
    Want more tutorials? Here you go! devdactic.com/
    Just getting started? Take my 7 Day Ionic Crash Course: ionicacademy.c...
    #############################
    You can also find me
    on / schlimmson
    on / devdactic
    on / simongrimm_
    #############################

Комментарии •

  • @townheadbluesboy
    @townheadbluesboy 5 лет назад +1

    Very well explained Simon

  • @TAPE5IVE
    @TAPE5IVE 5 лет назад +1

    Thanks Simon. Parts of this were very helpful in getting a better understanding for developing my e-commerce application prototype for University using Ionic 4 & Firestore.

  • @Mini-id6pv
    @Mini-id6pv 5 лет назад

    I frequently watch your lecture. fantastic!!

  • @martinez84221
    @martinez84221 5 лет назад +1

    Beautiful!!

  • @David-ej1ps
    @David-ej1ps 6 лет назад +4

    I am literally first!! NOTIFICATION SQUAD!!!

  • @sumitarora6429
    @sumitarora6429 5 лет назад +1

    best video!!! thanks alot

  • @neemias1236
    @neemias1236 5 лет назад

    Awesome! Just a question, I'm using slides to display a list of items in one and in another one, i have a crud to add an item to that list. The problem is the list is big, and when a go to the another slide there is a lot of blank space above the ions-slide. Is it possible to do an AutoUpdateHigth? Ive tried it with "[options]" , "slides.update()" and nothing... tks in advance

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      You could try to interact with the Swiper API directly, they also have something for auto height documented here: idangero.us/swiper/api/#methods
      Not sure if it works but that would be an idea!

  • @mehrajuddinam4333
    @mehrajuddinam4333 3 года назад

    hi i tried this example in ionic 4 by default ion slide is not sliding when i navigate back to home page how to fix this issue i am using ioni4 with angular 8

  • @dzurrahman
    @dzurrahman 4 года назад

    Hi Simon i have question, How to make sub array "Products" in Array "Data" but get data from Database, i'm using json php. thanks, hope u answer me

  • @charlisoni5613
    @charlisoni5613 5 лет назад

    is it working on normal ionic blank project too..??
    project type is reuired..??

    • @galaxies_dev
      @galaxies_dev  5 лет назад +1

      I don't know what you mean, the project templates are just a different way of getting started but there is no other difference!

    • @charlisoni7280
      @charlisoni7280 5 лет назад

      Simon Grimm i was trying to say that if i started project by writing ionic start projectname blank it will work if i do not use type angular.?

  • @erivelton84ribeiro
    @erivelton84ribeiro 4 года назад

    Can I add a questionnaire (with radio or text input) on each page of the slide and then, on the last page, press the button to send the answers?

  • @666santilmo
    @666santilmo 6 лет назад

    Awesome content!! Im really digging ionic lately. And youre one of those that i follow.. Question, is there a way to get the ionic shirt youre wearing?

    • @galaxies_dev
      @galaxies_dev  6 лет назад +1

      Thanks Vincent! It's actually in the official Ionic Merch store :)

    • @666santilmo
      @666santilmo 6 лет назад

      @@galaxies_dev Thanks! Got it! will check the Merch Store!

  • @marinelaferro9808
    @marinelaferro9808 4 года назад

    Hello Simon, I really want to learn how to make this dynamic slide, but when I go to create the service it gives an error. Can you help me?

    • @galaxies_dev
      @galaxies_dev  4 года назад

      Is there are problem with your CLI?

  • @jossyescobar1746
    @jossyescobar1746 5 лет назад

    Is perfect!!!, thanks so much
    How do I make a fixed size for each card? because i have
    images of different size

    • @galaxies_dev
      @galaxies_dev  5 лет назад +1

      You can give the card a fixed height and maybe also the image but ofc make sure to respect the aspect ratio. Maybe fill the image or set it as a background then!

  • @harshmirpuri7
    @harshmirpuri7 5 лет назад

    Thank you for the video! But i had a few questions. How do i add different images for different cards? Also could you show the code to remove items from the shopping cart?

    • @galaxies_dev
      @galaxies_dev  5 лет назад +1

      Well I only had some static data, of course you can have information in your data about which image to use! I think someone also posted the code to remove items, you can easily splice() the array at any time :)

  • @harithani5768
    @harithani5768 6 лет назад

    Good course

  • @rtpHarry
    @rtpHarry 6 лет назад

    Another interesting video! Suggestion: cut out a little post-it note the size of your mini video and stick it to the screen :) there have been several videos where you keep forgetting its going to be there and start explaining code that is hidden behind it.

    • @galaxies_dev
      @galaxies_dev  6 лет назад

      Haha that's actually a nice trick! It's anyway always a pane because I'm recording on my iMac and the screen is way to big. Only recording in like 1/4 of the screen, haven't found any other good way yet (besides scaling everything but then my eyes hurt too much)

  • @bigdaddyv6694
    @bigdaddyv6694 5 лет назад

    How do I add an increment and decrement to the cart page for each of the products? Please help.....

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      I'm already working on an extended example to work with the cart!

  • @dummychecks6444
    @dummychecks6444 4 года назад

    is there anyway to fixed the size of an ion-slide ?

    • @galaxies_dev
      @galaxies_dev  4 года назад

      Sure you can set it up in the configuration object, also check out the underlying API: swiperjs.com/api/

  • @candrakusuma4554
    @candrakusuma4554 4 года назад +1

    centeredSlidesBounds doesnt work..please help me simon

  • @romil0734
    @romil0734 6 лет назад

    Sir items are added to cart but notification is not showing on the cart badge icon

  • @liongxinyi6042
    @liongxinyi6042 5 лет назад

    How do I filter my 'posts' collection from firebase by the categories using ionic 4?

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      You could either use a query like described on the AngularFire page or retrieve all data and then filter it inside your Ionic app, but the first might make more sense!

    • @liongxinyi6042
      @liongxinyi6042 5 лет назад

      @@galaxies_dev is it possible to give me some help through email?

  • @wesleyisraelnogueiradasilv4818
    @wesleyisraelnogueiradasilv4818 6 лет назад

    Is amazing man

  • @ZanoDrathielaLoL
    @ZanoDrathielaLoL 4 года назад

    Hi, how could i insert the data on Firebase? because im trying to use this with firebase but i can't it

    • @galaxies_dev
      @galaxies_dev  4 года назад

      I don't see any problem? You could have a collection of items and keep all the items available for purchase in there!

  • @satheeshkumar-fj5oq
    @satheeshkumar-fj5oq 3 года назад

    when i refresh or reopen the page, the cart values shows zero...how i fix this..

    • @galaxies_dev
      @galaxies_dev  3 года назад +1

      The values are only within the service and not stored to localstorage or any DB, so it's normal that they disappear. You would have to write them to storage or save them to a backend to persist the cart.

  • @raber5
    @raber5 6 лет назад

    Thanks, its perfect

  • @dexterrustia2578
    @dexterrustia2578 4 года назад

    I been following you channel since the start of my ionic learning journey. Great content. Question. I think ionic change the ion-slide because how I'm having issue when i try to have *ngFor in it. Can you please give me advise :)

    • @galaxies_dev
      @galaxies_dev  4 года назад

      Hmm no I'm not aware of changes to slides, perhaps something in your markup is wrong? the iteration needs to be on slides, not the parent slide!

  • @ak-loz
    @ak-loz 5 лет назад

    For some reason in vue, binding the options (:options) does not work.

  • @marcelocch
    @marcelocch 5 лет назад

    Hi! Im using only the ion-slides, if you look closely you can see a weird animation, it goes from width 100% to width with margins, when you load the page, it happens quickly. For me, it looks like the ion-slides doesnt read the [options] variable when the pages loads, it reads it after.
    Im having the same issue: media.giphy.com/media/lOUD7TvWuoXcsVSLj3/giphy.gif
    WATCH 17:19

  • @uzairiftikhar4769
    @uzairiftikhar4769 5 лет назад

    how can I put different images in ion card becsuse it is showing same images in all ion card please solve this promblrm

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      You need an array with different images and then use the variable in your ngFor!

    • @guillashanemacalino8652
      @guillashanemacalino8652 3 года назад

      @@galaxies_dev can you please do the exact code on how to make array with different images then the ngFor variable?? It would mean alot to meeeeee please

  • @sameerahmed7333
    @sameerahmed7333 5 лет назад

    perfect but one things i want to know this add product is for universal for all users, it means i added two items from my login and then the two items also show for other users login, whats for individual users???

    • @galaxies_dev
      @galaxies_dev  5 лет назад +1

      This is only a very basic UI example. In your case you might need an authentications sytem and display specific items to specific users.

    • @sameerahmed7333
      @sameerahmed7333 5 лет назад

      @@galaxies_dev plss humble request to u, how to do this for individual users...plss suggest one video for this or the txt for this... pls

  • @ameerattaa2250
    @ameerattaa2250 6 лет назад

    great keep going

  • @youcefkayutsume9280
    @youcefkayutsume9280 5 лет назад

    slidesPerView doesn't work :( , any ideas ?

  • @yalord5378
    @yalord5378 4 года назад

    I need the ionic 5 with react version please

  • @csgeek9204
    @csgeek9204 6 лет назад

    Always best ever

  • @mayankjain4038
    @mayankjain4038 5 лет назад

    its not working if we open cart first and then home page

  • @abhijitkapse9427
    @abhijitkapse9427 5 лет назад

    i want this code in ionic 3 please.....

  • @cpadilla1981
    @cpadilla1981 6 лет назад

    nice !!!!

  • @DragosTudorache
    @DragosTudorache 5 лет назад

    i know this might sound harsh but what happens if you ngFor the ion-slid over thousands of products :D

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      Hmm very good question, perhaps you might get performance problems in that case :/

    • @DragosTudorache
      @DragosTudorache 5 лет назад

      @@galaxies_dev tried to find a way to have infinite slides(or at least a way to lazy load each slide's data), and there are some bugs with the swiperjs lib atm.

  • @johanntom1706
    @johanntom1706 4 года назад

    HomePage.html:20 ERROR TypeError: Cannot read property 'products' of undefined this is my error and the ion-slide is not displayed Help! @SimonGrimm

    • @galaxies_dev
      @galaxies_dev  4 года назад

      Have you defined the products in your page? Looks like there is no variable in the class!

  • @lidyadwiutamiipb6085
    @lidyadwiutamiipb6085 5 лет назад

    how about in ionic 3 sir?

  • @JFkingW
    @JFkingW 6 лет назад

    Video recommendation: making a PWa that is also optimized for desktop browsers.

  • @abhijitkapse9427
    @abhijitkapse9427 5 лет назад

    anyone please suggest me ionic 3 add to cart with mySql

  • @windleong6372
    @windleong6372 5 лет назад

    how can i remove product from the cart?

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      You can simply splice the array :)

    • @naveenpandi6027
      @naveenpandi6027 5 лет назад

      @@galaxies_dev i splice my object but display old array length,automatically not change cart length

  • @MiNombreEsGuevara
    @MiNombreEsGuevara 5 лет назад

    Mmm and i don't have idea how to do the pop function :c

  • @marcosradix1
    @marcosradix1 6 лет назад

    You speak like a Brazilian, do you are Brazil from?

  • @rijaltanjung9506
    @rijaltanjung9506 5 лет назад

    Lol, you can't get no-bug-at-all while developing with ionic.

    • @galaxies_dev
      @galaxies_dev  5 лет назад

      Yeah it's pretty hard. Sometimes I'm close to it but never 100% x)