Building an Accordion Component in Ionic 3

Поделиться
HTML-код
  • Опубликовано: 30 июл 2017
  • In this coding session, we will build a new Ionic Component. This component will add Accordion functionality to our Ionic 3 Apps. We will not use anything pre built. We will build this component completely from scratch.
    Join Me on FaceBook goo.gl/o2G36O
    WooIonic on CodeCanyon: codecanyon.net/item/wooionic-...
    Learn to build Ionic 3 Apps for WooCommerce. Grab a Coupon Here: goo.gl/uDbuad
    Learn to Build Ionic 3 Apps with Parse Server goo.gl/PWAWny
    Build an eCommerce Mobile App from start to end using Ionic Framework 3 and WooCommerce using HTML, SCSS, and TypeScript.
    Ionic 3 Apps for WooCommerce is a course that will help you understand the basics of the latest version of Ionic Framework, v3, and also walk you through, step by step, to build a complete eCommerce application for Android and iOS using your WooCommerce Store as the back-end. Ionic Framework v2 and v3 are similar, so even if you want to learn Ionic 2, you need the same course.
    The eCommerce app that we will build in this course gets the products' information from the WooCommerce store. You do not need to setup any extra databases or servers. All you need is just a WooCommerce store, either locally or on a remote server.
    Don't own a WooCommerce Store yet? You will learn how to setup a WooCommerce store for free on your own computer and then use it to build an eCommerce App. You do not need to buy any tool or software. The course uses all open-sourced technologies.
    You will build an eCommerce app that will allow the user to browse through the product catalog, search products in a particular product category, add products to their cart and then pay for their orders. The customers can pay using the PayPal payment gateway as well. The users will get Push Notifications every time you publish a new product.
  • НаукаНаука

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

  • @thesamarthagarwal
    @thesamarthagarwal  6 лет назад +4

    Github Repo: github.com/samarthagarwal/ionic-accordion-component

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

      Hi bro, how i can display different information for each accordion ?

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

      Hi bro, it's really awesome... Really appreciate for your contribution and it help us a lot. Keep it up!!

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

    Saw some of your other videos great stuff. You keep getting better.

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

    Another great tutorial from Samarth... Thanks a lot for share your knowledge with the world! Keep in this way! Greetings from Argentina.

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

    This was really cool Samarth, it worked perfectly. Thanks so much for sharing.

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

      I do have one question: Do I have to create a new component every time I want new content?

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

    Great Video! Good job explaining the details. Thank you.

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

    Yeah the music is fine, its better than hearing keyboard and mouse clicking in the background.... Thanks so much, the tut is awesome and helped me a lot!

  • @jean-marcs.1746
    @jean-marcs.1746 6 лет назад

    Thank you for this video and sharing your knowledge :)

  • @michaeljoshua630
    @michaeljoshua630 7 лет назад +1

    Thanks a lot bro worked perfectly

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

    Thank you ! Great Content...

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

    Thanks, Very helpful

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

    Thanks, it's very nice

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

    Thanks for this tutorial! Just wanted to add that the max-height should be this when the accordion expands so that the animation goes more smoothly if the content is long:
    this.renderer.setElementStyle(this.cardContent.nativeElement, "max-height",(this.cardContent.nativeElement.scrollHeight + "px"));

  • @PaulMcKillop
    @PaulMcKillop 7 лет назад +11

    Great content but please kill the music! it is very distracting

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

    Great, I want to add different content to each accordion how to do that ? u explained in part two but not clear enough. Could u please explain about the file u are accessing in there? tq

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

    (y) me funciono, saludos desde Mexico

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

    Hey, I liked the video. but how do you pass data from an array to the component?

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

    Muito obrigado . Brasil.

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

    Its nice video. I need help how to export multiple component when i'm using lazy loading

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

    how do you make one accordion close when you click on another?

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

    Hey .I am implementing the same in my project but its showing an error like 'accordion' is not a known element:
    Can u please give me the solution to get over it?

  • @MB-qp9li
    @MB-qp9li 6 лет назад

    Hi thank you for your tutorial.
    I am getting this error:
    Error: Unexpected directive 'AccordionComponent in /Users/michaelberger/medmantest/src/components/accordion/accordion.ts' imported by the module 'AppModule in /Users/michaelberger/medmantest/src/app/app.module.ts'. Please add a @NgModule annotation.
    What can I do?

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

    can i set litst of items in the component

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

    Hello, why do I always get the error message : "Uncaught (in promise): TypeError: this.cardContent is undefined" ?? I followed the tutorial, but it don't work... How you reply

  • @avishkarpatil5129
    @avishkarpatil5129 22 дня назад

    How to use this with list of items

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

    Hi Sir, Can you please solve this problem....I am getting this problem Error: Template parse errors:
    'accordion' is not a known element:
    1. If 'accordion' is an Angular component, then verify that it is part of this module.
    2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    [ERROR ->]
    "): ng:///ContextPageModule/ContextPage.html@50:4

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

    hello, everything works fine but i'm getting error : " NullInjectorError: No provider for Renderer! " please help me to resolve

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

    Cool :)

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

    How can i implement using http get request?..this code is running fine.i am using list with a card & it expands only the first index of the list on every items click

  • @rbamrim
    @rbamrim 6 лет назад +2

    When I am using the component in my page, how can I set a new Title and new content?
    some thing like this:
    text text text text text text text text text text text text

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

    Hello, nice video, please push the code to github if possible. Thank you. :)

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

    how can i set the different button name and content,because it gave me the same content and same name

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

    Better to use Angular Animation and easier

  • @expertadvisors4109
    @expertadvisors4109 6 лет назад +3

    The background techno music is not very distracting

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

    It works in iIonic 4?
    or some way to build in ionic 4?

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

      ruclips.net/video/w5PR_d6eiQI/видео.html

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

    When we put multiple Accordians, oblivious we need different content in each. But as per your method all the Accordians will have same content :(

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

    good tutorial, but the music dude, the music ruins everything

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

    argh the music!! so hard to concentrate

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

    Cool Content - irritating Music!