{"id":2510,"date":"2018-12-21T18:25:43","date_gmt":"2018-12-21T18:25:43","guid":{"rendered":"https:\/\/ionicframework.com\/?p=2510"},"modified":"2022-12-12T17:55:12","modified_gmt":"2022-12-12T22:55:12","slug":"new-guide-your-first-ionic-framework-v4-app","status":"publish","type":"post","link":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app","title":{"rendered":"New Guide: Your First Ionic Framework V4 App"},"content":{"rendered":"<p>Following the exciting news that the Ionic Framework v4 <a href=\"https:\/\/ionicframework.com\/ionic-framework-4-0-rc-shipped-paving-way-for-final\/\" target=\"_blank\" rel=\"noopener\">release candidate has shipped<\/a>, we\u2019re releasing a new developer guide: <a href=\"https:\/\/beta.ionicframework.com\/docs\/developer-resources\/guides\/first-app-v4\/intro\/\" target=\"_blank\" rel=\"noopener\"><em>Your First Ionic v4 App<\/em><\/a>.<\/p>\n<p><!--more--><\/p>\n<p>This guide walks you through the basics of Ionic Framework development in a fun and friendly manner. So, if you\u2019re looking for an easy way to start building an Ionic app, this is a great place to begin. After completing all steps, you\u2019ll have transformed the <a href=\"https:\/\/github.com\/ionic-team\/starters\" target=\"_blank\" rel=\"noopener\">Tabs Angular starter app<\/a> into an interactive photo gallery:<\/p>\n<p><a href=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"588\" class=\"aligncenter size-full wp-image-2512 lazyload\" data-src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4.png\" alt=\"\" data-srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4.png 835w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4-300x211.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4-768x541.png 768w\" data-sizes=\"auto, (max-width: 835px) 100vw, 835px\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 835px; --smush-placeholder-aspect-ratio: 835\/588;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"588\" class=\"aligncenter size-full wp-image-2512\" src=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4.png\" alt=\"\" srcset=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4.png 835w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4-300x211.png 300w, https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/gallery-beforeAfter-updated-v4-768x541.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/noscript><\/a><\/p>\n<p>Along the way, you\u2019ll be able to use <a href=\"https:\/\/ionicframework.com\/docs\/appflow\/devapp\/\" target=\"_blank\" rel=\"noopener\">Ionic DevApp<\/a> to run your Ionic app directly on an iOS or Android device, seeing changes refresh immediately while writing code. After adding the <a href=\"https:\/\/beta.ionicframework.com\/docs\/native\/camera\" target=\"_blank\" rel=\"noopener\">Cordova Camera plugin<\/a>, the app can take pictures using the device\u2019s camera, and after adding the <a href=\"https:\/\/ionicframework.com\/docs\/storage\/\" target=\"_blank\" rel=\"noopener\">Ionic Storage plugin<\/a> you\u2019ll be able to save images to the device as well.<\/p>\n<p>The best part? All of the camera functionality is possible via a cross-platform API. As you see below, there\u2019s no iOS or Android-specific code!<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre><code class=\"language-typescript\">\/\/ open the device camera\nthis.camera.getPicture(options).then((imageData) =&gt; {\n  \/\/ Add new photo to gallery\n  this.photos.unshift({\n    data: &#039;data:image\/jpeg;base64,&#039; + imageData\n  });\n\n  \/\/ Save all photos for later viewing\n  this.storage.set(&#039;photos&#039;, this.photos);\n}, (err) =&gt; {\n  \/\/ Handle error\n  console.log(&quot;Camera issue: &quot; + err);\n});\n<\/code><\/pre>\n<p>Ready to take Ionic Framework v4 for a spin?<br \/>\n<a href=\"https:\/\/beta.ionicframework.com\/docs\/developer-resources\/guides\/first-app-v4\/intro\/\" target=\"_blank\" rel=\"noopener\">View the rest of the guide here<\/a> and start building!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following the exciting news that the Ionic Framework v4 release candidate has shipped, we\u2019re releasing a new developer guide: Your First Ionic v4 App.<\/p>\n","protected":false},"author":62,"featured_media":2511,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"publish_to_discourse":"0","publish_post_category":"23","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":[1,124],"tags":[23,131],"class_list":["post-2510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-tutorials","tag-framework","tag-v4"],"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 Guide: Your First Ionic Framework V4 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-guide-your-first-ionic-framework-v4-app\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Guide: Your First Ionic Framework V4 App\" \/>\n<meta property=\"og:description\" content=\"Following the exciting news that the Ionic Framework v4 release candidate has shipped, we\u2019re releasing a new developer guide: Your First Ionic v4 App.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\" \/>\n<meta property=\"og:site_name\" content=\"Ionic Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-21T18:25:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-12T22:55:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\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-guide-your-first-ionic-framework-v4-app#article\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\"},\"author\":{\"name\":\"Matt Netkow\",\"@id\":\"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790\"},\"headline\":\"New Guide: Your First Ionic Framework V4 App\",\"datePublished\":\"2018-12-21T18:25:43+00:00\",\"dateModified\":\"2022-12-12T22:55:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\"},\"wordCount\":200,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/ionic.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png\",\"keywords\":[\"Framework\",\"V4\"],\"articleSection\":[\"All\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\",\"url\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\",\"name\":\"New Guide: Your First Ionic Framework V4 App - Ionic Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ionic.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png\",\"datePublished\":\"2018-12-21T18:25:43+00:00\",\"dateModified\":\"2022-12-12T22:55:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage\",\"url\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png\",\"contentUrl\":\"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png\",\"width\":1440,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ionic.io\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Guide: Your First Ionic Framework V4 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 Guide: Your First Ionic Framework V4 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-guide-your-first-ionic-framework-v4-app","og_locale":"en_US","og_type":"article","og_title":"New Guide: Your First Ionic Framework V4 App","og_description":"Following the exciting news that the Ionic Framework v4 release candidate has shipped, we\u2019re releasing a new developer guide: Your First Ionic v4 App.","og_url":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app","og_site_name":"Ionic Blog","article_published_time":"2018-12-21T18:25:43+00:00","article_modified_time":"2022-12-12T22:55:12+00:00","og_image":[{"width":1440,"height":800,"url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.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-guide-your-first-ionic-framework-v4-app#article","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app"},"author":{"name":"Matt Netkow","@id":"https:\/\/ionic.io\/blog\/#\/schema\/person\/93c8b2fe110f183510c6285b0de40790"},"headline":"New Guide: Your First Ionic Framework V4 App","datePublished":"2018-12-21T18:25:43+00:00","dateModified":"2022-12-12T22:55:12+00:00","mainEntityOfPage":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app"},"wordCount":200,"commentCount":2,"publisher":{"@id":"https:\/\/ionic.io\/blog\/#organization"},"image":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png","keywords":["Framework","V4"],"articleSection":["All","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app","url":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app","name":"New Guide: Your First Ionic Framework V4 App - Ionic Blog","isPartOf":{"@id":"https:\/\/ionic.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage"},"image":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage"},"thumbnailUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png","datePublished":"2018-12-21T18:25:43+00:00","dateModified":"2022-12-12T22:55:12+00:00","breadcrumb":{"@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#primaryimage","url":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png","contentUrl":"https:\/\/ionic.io\/blog\/wp-content\/uploads\/2018\/12\/v4-photo-gallery.png","width":1440,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/ionic.io\/blog\/new-guide-your-first-ionic-framework-v4-app#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ionic.io\/blog"},{"@type":"ListItem","position":2,"name":"New Guide: Your First Ionic Framework V4 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\/2018\/12\/v4-photo-gallery.png","_links":{"self":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/2510","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=2510"}],"version-history":[{"count":0,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/posts\/2510\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media\/2511"}],"wp:attachment":[{"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/media?parent=2510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/categories?post=2510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionic.io\/blog\/wp-json\/wp\/v2\/tags?post=2510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}