{"id":53621,"date":"2022-01-06T17:36:31","date_gmt":"2022-01-06T17:36:31","guid":{"rendered":"http:\/\/www.quintadosilval.pt\/?p=53621"},"modified":"2022-01-06T17:50:07","modified_gmt":"2022-01-06T17:50:07","slug":"creating-tinder-style-swipe-notes-with-ionic","status":"publish","type":"post","link":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/","title":{"rendered":"Creating Tinder-Style Swipe Notes With Ionic Structure"},"content":{"rendered":"<p><title>Creating Tinder-Style Swipe Notes With Ionic Structure<\/title><\/p>\n<p>The Tinder software lately got lots of attention, particularly the swipe cards is instantly being everywhere. Ionic is already generating a remedy for everyone to conveniently develop these types of cards with HTML5 and Javascript. Therefore, inside guide i shall explain to you how to include Tinder-style swipe notes inside Ionic software by using a custom ion.<\/p>\n<p>Available the existing work for ionic-ion-tinder-cards on github. But the trial is a little buggy therefore the documents right now is not too detailed, so stick to along this tutorial receive a sweet credit optic such as this:<\/p>\n<h2>Create the base App<\/h2>\n<p>We begin with an easy empty Ionic template and include the iOS and Android os Platform:<\/p>\n<p><!--more--><\/p>\n<p>Now we should instead put in the the Ionic tinder cards, generally speaking I prefer they to put in these packages via bower thus go on and type:<\/p>\n<p>This can just put in the Ionic tdcards, but also the collide.js lib used in the tinder notes. We should instead transfer both in our software, for that reason open your index.html and include the contours:<\/p>\n<h2>Adding the tinder cards<\/h2>\n<p>To display nothing, we have to revise our list.html you need to include the custom made directives. Substitute every thing in the human anatomy with:<\/p>\n<p>We include notes for products in our very own extent collection, and additional we set some occasions for all the activities the cards obtain. These are generally rather self explaining, I must discuss that some activities don\u2019t become totally appropriate brought about by now. I believe we will have an update on these parts in the near future.<\/p>\n<p>Within the credit we&#8217;ve some div aspects, but we shall reach the styling after within tutorial. The key role we have found to have at the very least the yes-text and no-text lessons, as they are targeted inside the tinder notes library. Any time you don\u2019t make use of them, you will observe a lot of JavaScript errors in your system!<\/p>\n<p>Furthermore we add the \u2018no-scroll\u2019 directive to the body, and that means you don\u2019t scroll the information it self but only the cards. We determine this within app.js and also shoot the addiction toward tinderCards:<\/p>\n<p>Now precisely the operator we allotted to our content is actually missing. Very go on and incorporate this to your app.js:<\/p>\n<p>Nothing special in here. We establish our very own collection with cardtypes (you are able to find the images when you look at the associated github repo) and put the three cards to your extent selection when it comes down to ng-repeat we identified for the list. One other applications are the ones we assigned to the swipe occasions. For me personally, the cardDestroyed seems to run always whilst some other two merely bring labeled as when you really swipe the cards around fast.<\/p>\n<p>The official Ionic demonstration in addition adds a brand new cards whenever one ended up being destroyed\/swiped aside, but that brings about unusual UI behavior for my situation. As I stated before, you&#8217;ll encounter positively news down the road.<\/p>\n<h2>Then add custom made design<\/h2>\n<p>Very last thing missing out on is now some CSS. If you run their application chances are, the look won\u2019t end up being near that which you noticed at the start of this blog post. Maybe more components of the design and style will be incorporated into subsequent secretes, for now put this towards app.css:<\/p>\n<p>Overall, there is two portion here: The styling and position of cards component, together with design for a slight overlay when you begin dragging the notes. You can easily play around with all of aspects to fit your needs, in my situation it was in some way a satisfactory benefit. Today just do it an run their app, and you should has three cool designed tinder cards! Do you spot the tiny effect on the card bunch when you pull one card? Yes, Ionic provides an eye for information.<\/p>\n<p>If you want to begin to see the tinder notes for action, you can get a look at my implementation on Heroku or deploy it directly to your own Heroku.<\/p>\n<h2>Bottom Line<\/h2>\n<p>This guide described making Tinder preferences notes with Ionic, with only some directives and custom design. However, you may still find some details which has to be repaired. The swiping isn&#8217;t necessarily caused <a href=\"https:\/\/datingmentor.org\/escort\/clearwater\/\">Clearwater escort girl<\/a> correctly, and a button to programmatically pop the most truly effective cards wasn&#8217;t employed by now. This will be an attribute your definitely always desire when using cards such as.<\/p>\n<p>If you like this tutorial or have inquiries please remark, stick to me on twitter or take a good look at my writings Devdactic observe additional training about Ionic also extravagant frameworks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p> [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5005],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval\" \/>\n<meta property=\"og:description\" content=\"[&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/\" \/>\n<meta property=\"og:site_name\" content=\"Quinta Do Silval\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-06T17:36:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-06T17:50:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/\",\"url\":\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/\",\"name\":\"Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval\",\"isPartOf\":{\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/#website\"},\"datePublished\":\"2022-01-06T17:36:31+00:00\",\"dateModified\":\"2022-01-06T17:50:07+00:00\",\"author\":{\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/www.quintadosilval.pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating Tinder-Style Swipe Notes With Ionic Structure\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/#website\",\"url\":\"http:\/\/www.quintadosilval.pt\/en\/\",\"name\":\"Quinta Do Silval\",\"description\":\"Official Page Quinta do Silval\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.quintadosilval.pt\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"http:\/\/www.quintadosilval.pt\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/","og_locale":"en_US","og_type":"article","og_title":"Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval","og_description":"[&hellip;]","og_url":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/","og_site_name":"Quinta Do Silval","article_published_time":"2022-01-06T17:36:31+00:00","article_modified_time":"2022-01-06T17:50:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/","url":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/","name":"Creating Tinder-Style Swipe Notes With Ionic Structure - Quinta Do Silval","isPartOf":{"@id":"http:\/\/www.quintadosilval.pt\/en\/#website"},"datePublished":"2022-01-06T17:36:31+00:00","dateModified":"2022-01-06T17:50:07+00:00","author":{"@id":"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852"},"breadcrumb":{"@id":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.quintadosilval.pt\/en\/creating-tinder-style-swipe-notes-with-ionic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.quintadosilval.pt\/"},{"@type":"ListItem","position":2,"name":"Creating Tinder-Style Swipe Notes With Ionic Structure"}]},{"@type":"WebSite","@id":"http:\/\/www.quintadosilval.pt\/en\/#website","url":"http:\/\/www.quintadosilval.pt\/en\/","name":"Quinta Do Silval","description":"Official Page Quinta do Silval","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.quintadosilval.pt\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g","caption":"admin"},"url":"http:\/\/www.quintadosilval.pt\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/53621"}],"collection":[{"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/comments?post=53621"}],"version-history":[{"count":1,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/53621\/revisions"}],"predecessor-version":[{"id":53622,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/53621\/revisions\/53622"}],"wp:attachment":[{"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/media?parent=53621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/categories?post=53621"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/tags?post=53621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}