{"id":3432,"date":"2020-10-08T15:10:44","date_gmt":"2020-10-08T15:10:44","guid":{"rendered":"https:\/\/ionicframework.com\/blog\/?p=3432"},"modified":"2020-10-13T16:02:08","modified_gmt":"2020-10-13T16:02:08","slug":"new-tutorial-your-first-ionic-vue-app","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app","title":{"rendered":"New Tutorial: Your First Ionic Vue App"},"content":{"rendered":"<p>Following the news that the <a href=\"https:\/\/twitter.com\/Ionicframework\/status\/1311727758150692867\">Ionic Vue release candidate has shipped<\/a>, I\u2019m excited to share a new tutorial: &#8220;Your First Ionic App&#8221; for <a href=\"https:\/\/ionicframework.com\/docs\/vue\/your-first-app\">Ionic Vue<\/a>!<\/p>\n<p>If you&#8217;ve already tried the <a href=\"https:\/\/ionicframework.com\/docs\/angular\/your-first-app\">Angular<\/a> or <a href=\"https:\/\/ionicframework.com\/docs\/react\/your-first-app\">React<\/a> version of the Build Your First App tutorials, you&#8217;ll feel right at home with this new guide. It walks you through the fundamentals of Ionic app development by creating a real app step by step. After completing the tutorial, you\u2019ll transform the Tabs starter app into an interactive photo gallery that runs on the web, iOS, and Android &#8211; all from one codebase:<\/p>\n<p><!--more--><\/p>\n<p><iframe loading=\"lazy\" width=\"100%\" height=\"315\" data-src=\"https:\/\/www.youtube.com\/embed\/0ASQ13Y1Rk4\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<p><a href=\"https:\/\/tutorial-photo-gallery-vue.vercel.app\/tabs\/tab2\">Try the PWA version of the app for yourself here.<\/a><\/p>\n<h2>What We\u2019ll Build<\/h2>\n<p>The Photo Gallery app includes the ability to take photos with your device&#8217;s camera, display them in a grid, and store them permanently on the device.<\/p>\n<p>Highlights include:<\/p>\n<ul>\n<li>A Vue-based codebase that runs on the web, iOS, and Android using Ionic Framework <a href=\"https:\/\/ionicframework.com\/docs\/components\">UI components<\/a>.<\/li>\n<li>Deployed as a native iOS and Android mobile app using <a href=\"https:\/\/capacitorjs.com\/\">Capacitor<\/a>, Ionic&#8217;s official native app runtime.<\/li>\n<li>Photo Gallery functionality powered by the Capacitor <a href=\"https:\/\/capacitorjs.com\/docs\/apis\/camera\">Camera<\/a>, <a href=\"https:\/\/capacitorjs.com\/docs\/apis\/filesystem\">Filesystem<\/a>, and <a href=\"https:\/\/capacitorjs.com\/docs\/apis\/storage\">Storage<\/a> APIs.<\/li>\n<\/ul>\n<h2>It\u2019s Gonna Be Vue-tiful<\/h2>\n<p>My favorite thing about this tutorial is the coverage of Vue 3 concepts, such as the Composition API, reactive references, and lifecycle hooks, as well as modern JavaScript features like destructuring, the rest\/spread operator, and ESModules.<\/p>\n<p>For example, in order to save the photos to permanent storage, the Vue 3 <a href=\"https:\/\/v3.vuejs.org\/guide\/composition-api-introduction.html#reacting-to-changes-with-watch\">watch function<\/a> is used to watch the photos array. Whenever the array is modified (in this case, capturing or deleting photos), the <code>cachePhotos<\/code> function is triggered. Not only do we get to reuse code, but it guarantees that photo data is always saved &#8211; even if the app user closes or switches to a different app:<\/p>\n<pre><code class=\"language-typescript\">\/\/ Use the Capacitor Storage API to cache photos\nconst cachePhotos = () =&gt; {\n  Storage.set({\n    key: &quot;photos&quot;,\n    value: JSON.stringify(photos.value)\n  });\n}\n\n\/\/ Anytime the photos array is modified, cache photo data\nwatch(photos, cachePhotos);\n<\/code><\/pre>\n<p>So, bottom line: if you\u2019re looking for a practical, hands-on tutorial, this is the one.<\/p>\n<h2>Try the Tutorial<\/h2>\n<p>Ready to learn Ionic Vue? <a href=\"https:\/\/ionicframework.com\/docs\/vue\/your-first-app\">Follow the tutorial here<\/a> and start building your first Ionic app!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following the news that the Ionic Vue release candidate has shipped, I\u2019m excited to share a new tutorial: &#8220;Your First Ionic App&#8221; for Ionic Vue! If you&#8217;ve already tried the Angular or React version of the Build Your First App tutorials, you&#8217;ll feel right at home with this new guide. It walks you through the [&hellip;]<\/p>\n","protected":false},"author":62,"featured_media":3454,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[124],"tags":[151,3,147],"class_list":["post-3432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-capacitor","tag-ionic","tag-vue"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.0 (Yoast SEO v23.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>New Tutorial: Your First Ionic Vue App - Ionic Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Tutorial: Your First Ionic Vue App\" \/>\n<meta property=\"og:description\" content=\"Following the news that the Ionic Vue release candidate has shipped, I\u2019m excited to share a new tutorial: &#8220;Your First Ionic App&#8221; for Ionic Vue! If you&#8217;ve already tried the Angular or React version of the Build Your First App tutorials, you&#8217;ll feel right at home with this new guide. It walks you through the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-08T15:10:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-13T16:02:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"880\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Matt Netkow\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dotNetkow\" \/>\n<meta name=\"twitter:site\" content=\"@ionicframework\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matt Netkow\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\"},\"author\":{\"name\":\"Matt Netkow\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790\"},\"headline\":\"New Tutorial: Your First Ionic Vue App\",\"datePublished\":\"2020-10-08T15:10:44+00:00\",\"dateModified\":\"2020-10-13T16:02:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\"},\"wordCount\":339,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png\",\"keywords\":[\"Capacitor\",\"Ionic\",\"Vue\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\",\"url\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\",\"name\":\"New Tutorial: Your First Ionic Vue App - Ionic Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png\",\"datePublished\":\"2020-10-08T15:10:44+00:00\",\"dateModified\":\"2020-10-13T16:02:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png\",\"width\":1600,\"height\":880},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Tutorial: Your First Ionic Vue App\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ionic.io\/blog\/#website\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"name\":\"ionic.io\/blog\",\"description\":\"Build amazing native and progressive web apps with the web\",\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ionic.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ionic.io\/blog\/#organization\",\"name\":\"Ionic\",\"url\":\"https:\/\/ionic.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png\",\"width\":1920,\"height\":854,\"caption\":\"Ionic\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ionicframework\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790\",\"name\":\"Matt Netkow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/07\/mattnetkow-150x150.jpg\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/07\/mattnetkow-150x150.jpg\",\"caption\":\"Matt Netkow\"},\"sameAs\":[\"https:\/\/x.com\/dotNetkow\"],\"url\":\"https:\/\/ionic.io\/blog\/author\/mattnetkow\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"New Tutorial: Your First Ionic Vue App - Ionic Blog","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":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app","og_locale":"en_US","og_type":"article","og_title":"New Tutorial: Your First Ionic Vue App","og_description":"Following the news that the Ionic Vue release candidate has shipped, I\u2019m excited to share a new tutorial: &#8220;Your First Ionic App&#8221; for Ionic Vue! If you&#8217;ve already tried the Angular or React version of the Build Your First App tutorials, you&#8217;ll feel right at home with this new guide. It walks you through the [&hellip;]","og_url":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app","og_site_name":"Ionic Blog","article_published_time":"2020-10-08T15:10:44+00:00","article_modified_time":"2020-10-13T16:02:08+00:00","og_image":[{"width":1600,"height":880,"url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","type":"image\/png"}],"author":"Matt Netkow","twitter_card":"summary_large_image","twitter_creator":"@dotNetkow","twitter_site":"@ionicframework","twitter_misc":{"Written by":"Matt Netkow","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app"},"author":{"name":"Matt Netkow","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790"},"headline":"New Tutorial: Your First Ionic Vue App","datePublished":"2020-10-08T15:10:44+00:00","dateModified":"2020-10-13T16:02:08+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app"},"wordCount":339,"commentCount":0,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","keywords":["Capacitor","Ionic","Vue"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app","url":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app","name":"New Tutorial: Your First Ionic Vue App - Ionic Blog","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","datePublished":"2020-10-08T15:10:44+00:00","dateModified":"2020-10-13T16:02:08+00:00","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#primaryimage","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","width":1600,"height":880},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/new-tutorial-your-first-ionic-vue-app#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"New Tutorial: Your First Ionic Vue App"}]},{"@type":"WebSite","@id":"https:\/\/ionic.io\/blog\/#website","url":"https:\/\/ionic.io\/blog\/","name":"ionic.io\/blog","description":"Build amazing native and progressive web apps with the web","publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ionic.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ionic.io\/blog\/#organization","name":"Ionic","url":"https:\/\/ionic.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/white-on-color.png","width":1920,"height":854,"caption":"Ionic"},"image":{"@id":"https:\/\/ionic.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ionicframework"]},{"@type":"Person","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790","name":"Matt Netkow","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/07\/mattnetkow-150x150.jpg","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/07\/mattnetkow-150x150.jpg","caption":"Matt Netkow"},"sameAs":["https:\/\/x.com\/dotNetkow"],"url":"https:\/\/ionic.io\/blog\/author\/mattnetkow"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2020\/10\/vue-ionic-feature-image.png","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/3432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/comments?post=3432"}],"version-history":[{"count":0,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/3432\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media\/3454"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=3432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=3432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=3432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}