{"id":3858,"date":"2018-07-27T15:17:11","date_gmt":"2018-07-27T09:47:11","guid":{"rendered":"https:\/\/code4developers.com\/?p=3858"},"modified":"2018-07-27T15:17:11","modified_gmt":"2018-07-27T09:47:11","slug":"angular-v6-1-is-now-available","status":"publish","type":"post","link":"https:\/\/code4developers.com\/angular-v6-1-is-now-available\/","title":{"rendered":"Angular v6.1 is now Available"},"content":{"rendered":"<p>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.<!--more--><\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"3859\"  data-permalink=\"https:\/\/code4developers.com\/angular-v6-1-is-now-available\/img1\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?fit=979%2C575&amp;ssl=1\"  data-orig-size=\"979,575\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"Angular v6.1\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?fit=800%2C470&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?fit=700%2C411&amp;ssl=1\"  class=\"alignnone size-full wp-image-3859 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAA9MAAAI\/AQMAAABOMhhLAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAFxJREFUeNrtwTEBAAAAwqD1T20KP6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+BhaTAAFuxwssAAAAAElFTkSuQmCC\"  alt=\"Angular v6.1\"  width=\"979\"  height=\"575\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 979px) 100vw, 979px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?w=979&amp;ssl=1 979w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=800%2C470&amp;ssl=1 800w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=700%2C411&amp;ssl=1 700w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=120%2C70&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=90%2C53&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=320%2C188&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=560%2C329&amp;ssl=1 560w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=240%2C141&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=180%2C106&amp;ssl=1 180w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=640%2C376&amp;ssl=1 640w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=300%2C176&amp;ssl=1 300w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/07\/img1.png?resize=768%2C451&amp;ssl=1 768w\" ><\/p>\n<h3 id=\"key-features\">Key features<\/h3>\n<h4 id=\"1-router-scroll-position-restoration\">1. Router Scroll Position Restoration<\/h4>\n<p>For a developers\u00a0 it is now possible to configure the router to remember and restore scroll position as the user navigates around an application. This is possible by using the new navigation events which will reset the scroll position, and by pressing the back button it will restore the previous position.<\/p>\n<p><strong>How to turn on restoration in the router configuration?<\/strong><\/p>\n<pre class=\"lang:default decode:true\">RouterModule.forRoot(routes, {scrollPositionRestoration: 'enabled'})<\/pre>\n<p>In the official blog team have noted that, this feature will become the default in a future major release.<\/p>\n<h4 id=\"2-shadowdom-v1-view-encapsulation\">2. ShadowDOM v1 View Encapsulation<\/h4>\n<p>View Encapsulation is ways of connecting your CSS to the components they are defined within. Within the component decorator, we can now change the View Encapsulation to use ShadowDOM v1. Previously used <code class=\"markup--code markup--p-code\"><strong>ViewEncapsulation.Native<\/strong><\/code> is now deprecated.<\/p>\n<p>Better cross-browser support of ShadowDOM v1 used to built cross browsers shared standards. This support was not this much accurate in previous version. For better understanding of <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/hayato.io\/2016\/shadowdomv1\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/hayato.io\/2016\/shadowdomv1\/\" data->differences between v1 and v0.<\/a><\/p>\n<p>Select the new encapsulation in your component\u2019s decorator:<\/p>\n<pre class=\"lang:default decode:true \">@Component({\r\n  templateUrl: '.\/my-component.html',\r\n  encapsulation: ViewEncapsulation.ShadowDom\r\n})\r\nexport class MyComponent { }<\/pre>\n<h4 id=\"3-schematics-chaining\">3. Schematics Chaining<\/h4>\n<p>The team have improved the way that we can chain Schematics by <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/github.com\/angular\/angular-cli\/commit\/ba3bb4138753e4a97d6b227cf7a95078a84334e0\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/github.com\/angular\/angular-cli\/commit\/ba3bb4138753e4a97d6b227cf7a95078a84334e0\" data->adding support<\/a> for returning a <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/github.com\/angular\/angular-cli\/blob\/master\/packages\/angular_devkit\/schematics\/README.md\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/github.com\/angular\/angular-cli\/blob\/master\/packages\/angular_devkit\/schematics\/README.md\" data->Rule<\/a> from an existing Rule. This allows us to more dynamically determine the set of rules to follow when designing Schematics.<\/p>\n<h4 id=\"4-typescript-2-9\">4. TypeScript 2.9<\/h4>\n<p>Angular now supports TypeScript 2.8 and 2.9, in addition to 2.7.<\/p>\n<p>Important change in TypeScript 2.9 will benefits the developers from the errors such as \u201c<code class=\"markup--code markup--p-code\">Exported variable \u2018x\u2019 has or is using name \u2018y\u2019 from external module \u2018z\u2019 but cannot be named<\/code>\u201d. We will not see this error and we will no longer have to change out code for such export patterns.<\/p>\n<p><strong>Summary<\/strong><\/p>\n<p>For the complete list of features and bug fixes please see the <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/github.com\/angular\/angular\/blob\/master\/CHANGELOG.md\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/github.com\/angular\/angular\/blob\/master\/CHANGELOG.md\" data->Angular changelog<\/a> and the <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/github.com\/angular\/angular-cli\/releases\/tag\/v6.1.0\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/github.com\/angular\/angular-cli\/releases\/tag\/v6.1.0\" data->CLI release\u00a0notes<\/a>.<\/p>\n<h5 id=\"click-here-to-see-articles-related-to-angular-written-by-our-authors\"><a href=\"https:\/\/code4developers.com\/category\/angular\/\">Click here to see articles related to Angular written by our Authors<\/a><\/h5>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/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,230,185,156,231],"powerkit_post_featured":[],"class_list":{"0":"post-3858","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-6-1","11":"tag-news","12":"tag-typescript","13":"tag-typescript-2-9"},"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-10e","jetpack-related-posts":[{"id":2613,"url":"https:\/\/code4developers.com\/ui-routing-basics\/","url_meta":{"origin":3858,"position":0},"title":"UI-Routing &#8211; Basics","author":"Arif Khoja","date":"June 17, 2017","format":false,"excerpt":"Introduction In the present scenario, AngularJS is the most trusted framework for the creation of Single Page Applications (SPA), and UI-Routing is one of the most important aspects. We want to keep our navigation feeling like a normal site and want to load the pages without refreshing the Browser. For\u2026","rel":"","context":"In &quot;AngularJs&quot;","block_context":{"text":"AngularJs","link":"https:\/\/code4developers.com\/category\/angularjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3934,"url":"https:\/\/code4developers.com\/angular-version-7-released\/","url_meta":{"origin":3858,"position":1},"title":"Angular Version 7 Released","author":"Yatendrasinh Joddha","date":"October 19, 2018","format":false,"excerpt":"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\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"Virtual Scrolling","src":"https:\/\/i0.wp.com\/cdn-images-1.medium.com\/max\/1200\/1%2ACQKUmJrBs-523I4GOiEUaA.gif?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn-images-1.medium.com\/max\/1200\/1%2ACQKUmJrBs-523I4GOiEUaA.gif?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/cdn-images-1.medium.com\/max\/1200\/1%2ACQKUmJrBs-523I4GOiEUaA.gif?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2658,"url":"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/","url_meta":{"origin":3858,"position":2},"title":"Angular 4 in Visual Studio","author":"Nisarg Dave","date":"June 22, 2017","format":false,"excerpt":"Introduction In this article, we will discuss about how to set up and start Angular 4 in visual studio. As many of developers have worked with Microsoft tools and technologies, they preferred visual studio as web development platform. Step 1: Install Node.js and npm The first step is to install\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"VS15","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":9279,"url":"https:\/\/code4developers.com\/what-is-new-in-angular-10\/","url_meta":{"origin":3858,"position":3},"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":3544,"url":"https:\/\/code4developers.com\/angular-6-crud-part-1-project-setup-routing-service\/","url_meta":{"origin":3858,"position":4},"title":"Angular 6 CRUD \u2013 Part 1: Project Setup, Routing, Service","author":"Nisarg Dave","date":"May 9, 2018","format":false,"excerpt":"This article is Part 1 Angular 6 CRUD. In this article and upcoming article, we will discuss performing CRUD operations in Angular 6 i.e. Creating, Reading, Updating and Deleting in Angular 6 with simple examples. We will also discuss about the Angular 6 Project setup, apply Routing, create service 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\/2018\/05\/json-server-call-300x297.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3047,"url":"https:\/\/code4developers.com\/apply-mcustomscrollbar-using-angular-directive\/","url_meta":{"origin":3858,"position":5},"title":"Apply mCustomScrollbar using Angular Directive","author":"Pawan Ingale","date":"August 14, 2017","format":false,"excerpt":"ngCustomScrollbar Directives are very well-known in the world of angular developers. Every developer knows the power of a\u00a0Directive. AngularJS has already provided many inbuilt directives which we are using on daily basis. Why custom scroll bars are useful? Browser default scroll bar are not so good to see while adjusting\u2026","rel":"","context":"In &quot;AngularJs&quot;","block_context":{"text":"AngularJs","link":"https:\/\/code4developers.com\/category\/angularjs\/"},"img":{"alt_text":"AngularJs LOGO","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/angular.png?fit=500%2C500&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3858","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=3858"}],"version-history":[{"count":2,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3858\/revisions"}],"predecessor-version":[{"id":3861,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/3858\/revisions\/3861"}],"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=3858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/categories?post=3858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/tags?post=3858"},{"taxonomy":"powerkit_post_featured","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/powerkit_post_featured?post=3858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}