{"id":3934,"date":"2018-10-19T12:37:05","date_gmt":"2018-10-19T07:07:05","guid":{"rendered":"https:\/\/code4developers.com\/?p=3934"},"modified":"2023-10-16T00:04:09","modified_gmt":"2023-10-15T18:34:09","slug":"angular-version-7-released","status":"publish","type":"post","link":"https:\/\/code4developers.com\/angular-version-7-released\/","title":{"rendered":"Angular Version 7 Released"},"content":{"rendered":"<p>Finally, the Angular version 7 (Angular v7) is out with some awesome features. Thanks to Angular team for all the efforts, in this major release angular team is spanning the entire platform, with the core framework, Angular Material, and the CLI with corresponding key versions. This release covers new landscapes for our tool chain and has enabled several major partner launches.<!--more--><\/p>\n<h3 id=\"d7a6\" class=\"graf graf--h3 graf-after--figure\"><span id=\"how-to-update-to-version-7\">How to update to\u00a0version 7?<\/span><\/h3>\n<pre class=\"theme:github lang:default decode:true graf graf--pre graf-after--p\">ng update @angular\/cli @angular\/core<\/pre>\n<p>Updating to v7 is only one command for most of the developers. If you wish to go through more detailed information visit <a href=\"https:\/\/update.angular.io\/\" target=\"_blank\" rel=\"noopener\">update.angular.io<\/a>. Developers have stated that this update is fastest, and most apps take less than 10 minutes to get update.<\/p>\n<h3 id=\"f389\" class=\"graf graf--h3 graf-after--p\"><span id=\"cli-prompts\">CLI Prompts<\/span><\/h3>\n<p>In the latest release team have noted that the CLI will now prompt users when running common commands like <code><span style=\"font-size: 10.0pt;\">ng new<\/span><\/code> or <code><span style=\"font-size: 10.0pt;\">ng add @angular\/material<\/span><\/code> to help you discover built-in features like routing or SCSS support.<\/p>\n<p id=\"2bf5\" class=\"graf\">CLI Prompts have been added to schematics, so any package publishing Schematics can take advantage of them by adding an <code><span style=\"font-size: 10.0pt;\">x-prompt<\/span><\/code> key to a Schematics collection.<\/p>\n<pre class=\"theme:github lang:default decode:true \">\"routing\": {\r\n  \"type\": \"boolean\",\r\n  \"description\": \"Generates a routing module.\",\r\n  \"default\": false,\r\n  \"x-prompt\": \"Would you like to add Angular routing?\"\r\n},<\/pre>\n<h3 id=\"f14f\" class=\"graf graf--h3 graf-after--figure\"><span id=\"application-performance\">Application Performance<\/span><\/h3>\n<p>Angular Team is more focusing on performance, and they have\u00a0 analyzed the common mistakes across the ecosystem. They discovered that many of us were including the reflect-metadata polyfill in production, which is only needed in development.<\/p>\n<p>To fix this, part of the update to v7 will automatically remove this from your <code class=\"markup--code markup--p-code\">polyfills.ts<\/code> file, and then include it as a build step when building your application in JIT mode, removing this polyfill from production builds by default.<\/p>\n<h3 id=\"3407\" class=\"graf graf--h3 graf-after--figure\"><span id=\"angular-material-the-cdk\">Angular Material &amp; the\u00a0CDK<\/span><\/h3>\n<p>This is the best part of 2018 Angular releases. Some most useful and amazing feature introduced with v7 are:<\/p>\n<p><strong class=\"markup--strong markup--p-strong\">Virtual Scrolling<\/strong><\/p>\n<p>Virtual Scrolling loads and unloads elements from the DOM based on the visible parts of a list, making it possible to build very fast experiences for users with very large scrollable lists.<\/p>\n<pre class=\"theme:github lang:default decode:true \">&lt;cdk-virtual-scroll-viewport itemSize=\"50\" class=\"example-viewport\"&gt;\r\n  &lt;div *cdkVirtualFor=\"let item of items\" class=\"example-item\"&gt;{{item}}&lt;\/div&gt;\r\n&lt;\/cdk-virtual-scroll-viewport&gt;<\/pre>\n<p><img  loading=\"lazy\"  decoding=\"async\"  class=\"progressiveMedia-image js-progressiveMedia-image alignnone pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"Virtual Scrolling\"  width=\"680\"  height=\"449\"  data-src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*CQKUmJrBs-523I4GOiEUaA.gif\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*CQKUmJrBs-523I4GOiEUaA.gif\" ><\/p>\n<p>(Ref: <a href=\"https:\/\/blog.angular.io\/version-7-of-angular-cli-prompts-virtual-scroll-drag-and-drop-and-more-c594e22e7b8c\" target=\"_blank\" rel=\"noopener\">Angular Blog<\/a>)<\/p>\n<p>&nbsp;<\/p>\n<p><strong class=\"markup--strong markup--p-strong\">Drag and Drop<\/strong><\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  class=\"progressiveMedia-image js-progressiveMedia-image alignnone pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"Drag and Drop\"  width=\"640\"  height=\"314\"  data-src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*i30ZQdBC7CKbXXdOrUNQcg.gif\"  data-pk-sizes=\"auto\"  data-pk-src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*i30ZQdBC7CKbXXdOrUNQcg.gif\" ><\/p>\n<p>(Ref: <a href=\"https:\/\/blog.angular.io\/version-7-of-angular-cli-prompts-virtual-scroll-drag-and-drop-and-more-c594e22e7b8c\" target=\"_blank\" rel=\"noopener\">Angular Blog<\/a>)<\/p>\n<p>Drag and drop support is now in the CDK and includes automatic rendering as the user moves items and helper methods for reordering lists (<code class=\"markup--code markup--p-code\">moveItemInArray<\/code>) and transferring items between lists (<code class=\"markup--code markup--p-code\">transferArrayItem<\/code>).<\/p>\n<pre class=\"theme:github lang:default decode:true \">&lt;div cdkDropList class=\"list\" (cdkDropListDropped)=\"drop($event)\"&gt;\r\n  &lt;div class=\"box\" *ngFor=\"let movie of movies\" cdkDrag&gt;{{movie}}&lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<pre class=\"theme:github lang:default decode:true \"> drop(event: CdkDragDrop&lt;string[]&gt;) {\r\n    moveItemInArray(this.movies, event.previousIndex, event.currentIndex);\r\n}<\/pre>\n<p>Some more highlighting features are:<\/p>\n<ul>\n<li id=\"9277\" class=\"graf graf--h3 graf-after--p\">Improved Accessibility of\u00a0Selects<\/li>\n<li id=\"02dc\" class=\"graf graf--h3 graf-after--p\">Angular Elements<\/li>\n<li id=\"84a7\" class=\"graf graf--h3 graf-after--pre\">Partner Launches<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.angular.io\/version-7-of-angular-cli-prompts-virtual-scroll-drag-and-drop-and-more-c594e22e7b8c\" target=\"_blank\" rel=\"noopener\"><strong>Click here to read detailed about Angular v7 on official angular blog<\/strong><\/a><\/p>\n<p>Credits: <a href=\"https:\/\/blog.angular.io\/version-7-of-angular-cli-prompts-virtual-scroll-drag-and-drop-and-more-c594e22e7b8c\" target=\"_blank\" rel=\"noopener\">Angular Blog<\/a><\/p>\n<p><strong><a href=\"https:\/\/code4developers.com\/category\/angular\/\">Explore our Angular section to read more articles on Angular<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally, the Angular version 7 (Angular v7) is out with some awesome features. Thanks to Angular team for all the efforts, in this major release angular team is spanning the&hellip;<\/p>\n","protected":false},"author":4,"featured_media":2649,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28,126],"tags":[29,197,173,179,256,185],"powerkit_post_featured":[],"class_list":{"0":"post-3934","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-angular","8":"category-news","9":"tag-angular","10":"tag-angular-4","11":"tag-angular-5","12":"tag-angular-6","13":"tag-angular-7","14":"tag-news"},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/angular-2.png?fit=240%2C240&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8NAi4-11s","jetpack-related-posts":[{"id":3576,"url":"https:\/\/code4developers.com\/angular-6-features\/","url_meta":{"origin":3934,"position":0},"title":"Angular 6 Features","author":"Yatendrasinh Joddha","date":"May 9, 2018","format":false,"excerpt":"On 4th May 2018 angular team announced new version of Angular i.e., Angular V6. In this major release they are not much focusing on Framework but on toolchain. They have tried to unify the framework, CLI, and Material more. In this article we will talk about some of the major\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/angular-2.png?fit=240%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2586,"url":"https:\/\/code4developers.com\/angular-4-installations\/","url_meta":{"origin":3934,"position":1},"title":"Angular 4 Installations","author":"Nisarg Dave","date":"June 14, 2017","format":false,"excerpt":"Introduction This article demonstrates how to install Angular 4 in your local system and start working with angular\/cli using basic commands. What is Angular 4? Before starting with Angular 4, we need to know about Angular 2. Angular 2 is totally different kind of framework from Angular 1. Angular 1\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=1050%2C600 3x"},"classes":[]},{"id":9279,"url":"https:\/\/code4developers.com\/what-is-new-in-angular-10\/","url_meta":{"origin":3934,"position":2},"title":"What is new in Angular 10?","author":"Yatendrasinh Joddha","date":"June 25, 2020","format":false,"excerpt":"Today Angular Teams has announced Version 10.0.0 of Angular! This release is smaller than typical, but it covers the entire platform, including the framework, Angular Material, and the CLI. What's new here? Optional Stricter Settings ng new --strict Enabling this flag initializes your new project with a few new settings\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/miro.medium.com\/max\/60\/0*ruU5G-8_hqEp3UBY?q=20","width":350,"height":200},"classes":[]},{"id":12847,"url":"https:\/\/code4developers.com\/connect-firebase-database-and-angular-app\/","url_meta":{"origin":3934,"position":3},"title":"Connect Firebase Realtime NoSQL Database with Angular App from Scratch","author":"Arif Khoja","date":"August 30, 2020","format":false,"excerpt":"In this tutorial, We are going to learn\u00a0How to connect Firebase Realtime NoSQL cloud database with Angular app from scratch?. We\u2019ll be using\u00a0AngularFire library for setting up Firebase database in the Angular web application. Firebase is a Google product, It is a real-time NoSQL cloud database that allows you to\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"connect-angular-firebase","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3858,"url":"https:\/\/code4developers.com\/angular-v6-1-is-now-available\/","url_meta":{"origin":3934,"position":4},"title":"Angular v6.1 is now Available","author":"Yatendrasinh Joddha","date":"July 27, 2018","format":false,"excerpt":"Angular version 6.1 has been released. This is replacement for version 6.0. As per official blog this is a minor release containing new features and bug fixes. Key features 1. Router Scroll Position Restoration For a developers\u00a0 it is now possible to configure the router to remember and restore scroll\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"Angular v6.1","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2625,"url":"https:\/\/code4developers.com\/angular-4-project-structure\/","url_meta":{"origin":3934,"position":5},"title":"Angular 4 Project Structure","author":"Nisarg Dave","date":"June 18, 2017","format":false,"excerpt":"Introduction In previous article we learned about Angular 4 Installation. You can find that article on https:\/\/code4developers.com\/angular-4-installations\/\u00a0. This article describes the project structure of Angular 4 application which Angular CLI created for us. I have already created ANGULAR4DEMO project in my previous article, so we will use that project to\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-1.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/comments?post=3934"}],"version-history":[{"count":6,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3934\/revisions"}],"predecessor-version":[{"id":3940,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3934\/revisions\/3940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/media\/2649"}],"wp:attachment":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/media?parent=3934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/categories?post=3934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/tags?post=3934"},{"taxonomy":"powerkit_post_featured","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/powerkit_post_featured?post=3934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}