{"id":1745,"date":"2018-03-14T13:33:14","date_gmt":"2018-03-14T13:33:14","guid":{"rendered":"https:\/\/www.moveoapps.com\/blog\/?p=1745"},"modified":"2018-06-08T11:26:28","modified_gmt":"2018-06-08T11:26:28","slug":"angular-6-make-developers-lives-easier","status":"publish","type":"post","link":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/","title":{"rendered":"New Features of Angular 6 Are Here to Make Developers&#8217; Lives Easier"},"content":{"rendered":"<p>Angular, Google\u2019s popular JavaScript Framework for building mobile and desktop applications, has been a hit with developers right from the time it launched in September 2016. By the end of 2017, 5 versions were already out, each one better than the last. Clearly, developers were anxiously waiting for Angular 6 to come out in 2018 and delightfully, the beta version is officially out now.<\/p>\n<p>The focus of angular has always been to stay faster, smaller and easier. Angular 6 continues to stay true to that theme and has a number of new features that will help developers get their jobs done better than ever before. Let\u2019s check out some of these new features:<\/p>\n<h2>What\u2019s new in Angular 6?<\/h2>\n<p>To help achieve the goal of being smaller, faster and easier, the version 6 beta features a new renderer called Ivy. The beta also adds an optional, backward-compatible generic type to support typed nativeElement. Loaded with all those powerful features, Angular 6 will officially release in March or April 2018, paving way for Angular 7 in September\/October 2018.<\/p>\n<blockquote><p>Read also:<a href=\"https:\/\/www.moveoapps.com\/blog\/angular-6-cli-quick-guide-installation-setup\/\">Angular 6 with CLI \u2013 Quick Guide to Installation and Setup<\/a><\/p><\/blockquote>\n<p>Angular 6 adds a number of new features and removes a few old ones too. Here\u2019s a list of everything you can expect to see in the new version, so brace yourself and here we go.<\/p>\n<ul>\n<li>Added Angular Material and CDK Stable Release<\/li>\n<li>Support Service Worker in the CLI\n<ul>\n<li>ng generate universal<\/li>\n<li>ng build &#8211;app= &lt; name &gt;<\/li>\n<\/ul>\n<\/li>\n<li>Improved Universal and AppShell Support in the CLI\n<ul>\n<li>ng generate app-shell [ &#8211;universal-app ] [ &#8211;route ]<\/li>\n<\/ul>\n<\/li>\n<li>Improved decorator error messages<\/li>\n<li>TypeScript 2.5.x support\n<ul>\n<li>npm install typescript@&#8217;~2.5.3&#8242;<\/li>\n<\/ul>\n<\/li>\n<li>Added to support \u2013 nativeElement<\/li>\n<li>Re-introduced Query Predicate with more focused role<\/li>\n<li>Missing lifecycle tests for projected components added<\/li>\n<li>Safety worker described<\/li>\n<li>afterContentInit and afterContentChecked added to render<\/li>\n<li>\u00a0Some fixes on language service &#8211;\n<ul>\n<li>The 2.6 version of Typescript\u2019s \u201cresolveModuleName\u201d started to require paths passed to be separated by &#8216;\/&#8217; instead of being able to handle &#8216;\\&#8217;.<\/li>\n<\/ul>\n<\/li>\n<li>Move init hooks into TView<\/li>\n<li>Correct onDestroy order for projected components<\/li>\n<li>Added type and hooks to directive def<\/li>\n<li>Enabled size tracking of a minimal CLI render3 application<\/li>\n<li>Fix platform-detection example for Universal<\/li>\n<li>Added canonical view query<\/li>\n<li>Some enhancements on compiler to reflect changes<\/li>\n<li>Renamed QueryPredicate to LQuery<\/li>\n<li>Renamed LQuery to LQueries and associated renames<\/li>\n<li>Allowed HttpInterceptors to inject HttpClient \u2013\n<ul>\n<li>Previously, an interceptor attempting to inject HttpClient directly would receive a circular dependency error, as HttpClient was constructed via a factory which injected the interceptor instances. Users want to inject HttpClient into interceptors to make supporting<\/li>\n<li>Either HttpClient or the user has to deal specially with the circular Dependency. This change moves that responsibility into HttpClient itself. By utilizing a new class HttpInterceptingHandler which lazily Loads the set of interceptors at request time, it&#8217;s possible to inject HttpClient directly into interceptors as construction of HttpClient no longer requires the interceptor chain to be constructed.<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0Added navigationSource and restoredState to NavigationStart &#8211;\n<ul>\n<li>Currently, NavigationStart there is no way to know if navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).<\/li>\n<\/ul>\n<\/li>\n<li>Removed generation of comments<\/li>\n<li>Fixed SideNav height on narrow screens &#8211;\n<ul>\n<li>\u00a0\u00a0Since we specify `bottom: 0`, specifying the height is unnecessary and Leads to wrong height (unless updated) on narrow screens where the topbar height is decreased.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>The beta version of Angular 6 has developers excited and for good reason. The build optimizer successfully makes the application smaller, the improved compiler makes things a whole lot faster and the overall experience is extremely easy and intuitive. Angular 6 successfully mitigates the few shortcomings of Angular 5 such as the problem with production build source maps. So check out the all new and loaded Angular 6 right now.<\/p>\n<h3>Where can you download the Angular 6 beta?<\/h3>\n<p>You can download the Angular 6 beta from <a href=\"https:\/\/github.com\/angular\/angular\/releases\/tag\/6.0.0-beta.1\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>.<\/p>\n<p><script type=\"text\/javascript\" src=\"\/\/newsharecounts.s3-us-west-2.amazonaws.com\/nsc.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Angular, Google\u2019s popular JavaScript Framework for building mobile and desktop applications, has been a hit with developers right from the time it launched in September 2016. By the end of 2017, 5 versions were already out, each one better than the last. Clearly, developers were anxiously waiting for Angular 6 to come out in 2018 &hellip; <a href=\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">New Features of Angular 6 Are Here to Make Developers&#8217; Lives Easier<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":101018,"featured_media":1754,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1745","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier<\/title>\n<meta name=\"description\" content=\"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier\" \/>\n<meta property=\"og:description\" content=\"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\" \/>\n<meta property=\"og:site_name\" content=\"Moveo Apps\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/bhargav.patel.121\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-14T13:33:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-08T11:26:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1294\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Bhargav Patel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Bhargav_bkpatel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bhargav Patel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\",\"name\":\"New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier\",\"isPartOf\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png\",\"datePublished\":\"2018-03-14T13:33:14+00:00\",\"dateModified\":\"2018-06-08T11:26:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/59404500d3fc1ef687e48abb867aec10\"},\"description\":\"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png\",\"contentUrl\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png\",\"width\":2560,\"height\":1294,\"caption\":\"New Features of Angular 6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.moveoapps.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New Features of Angular 6 Are Here to Make Developers&#8217; Lives Easier\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#website\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/\",\"name\":\"Moveo Apps\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.moveoapps.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/59404500d3fc1ef687e48abb867aec10\",\"name\":\"Bhargav Patel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/76bba2d4a1c359a815c5f3cfec27863933eecf8884d2008798d5786216b930b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/76bba2d4a1c359a815c5f3cfec27863933eecf8884d2008798d5786216b930b3?s=96&d=mm&r=g\",\"caption\":\"Bhargav Patel\"},\"description\":\"Bhargav Patel is a passionate frontend developer at MoveoApps with expertise in React Native, Angular5, NodeJS and ReactJS. With a keen interest in apps and a sharp eye for the latest trends, he doesn\u2019t let pass an opportunity to help the developer community with articles and tips on honing the craft.\",\"sameAs\":[\"http:\/\/www.moveoapps.com\",\"https:\/\/www.facebook.com\/bhargav.patel.121\",\"https:\/\/x.com\/https:\/\/twitter.com\/Bhargav_bkpatel\"],\"url\":\"https:\/\/www.moveoapps.com\/blog\/author\/bhargav-patel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier","description":"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.","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:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/","og_locale":"en_US","og_type":"article","og_title":"New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier","og_description":"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.","og_url":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/","og_site_name":"Moveo Apps","article_author":"https:\/\/www.facebook.com\/bhargav.patel.121","article_published_time":"2018-03-14T13:33:14+00:00","article_modified_time":"2018-06-08T11:26:28+00:00","og_image":[{"width":2560,"height":1294,"url":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png","type":"image\/png"}],"author":"Bhargav Patel","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Bhargav_bkpatel","twitter_misc":{"Written by":"Bhargav Patel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/","url":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/","name":"New Features of Angular 6 Are Here to Make Developers\u2019 Lives Easier","isPartOf":{"@id":"https:\/\/www.moveoapps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage"},"image":{"@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage"},"thumbnailUrl":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png","datePublished":"2018-03-14T13:33:14+00:00","dateModified":"2018-06-08T11:26:28+00:00","author":{"@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/59404500d3fc1ef687e48abb867aec10"},"description":"Angular 6 beta is out now and it holds on to its motto of being smaller, faster and easier. Check out all the scintillating new features of latest version.","breadcrumb":{"@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#primaryimage","url":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png","contentUrl":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/03\/Angular-6.png","width":2560,"height":1294,"caption":"New Features of Angular 6"},{"@type":"BreadcrumbList","@id":"https:\/\/www.moveoapps.com\/blog\/angular-6-make-developers-lives-easier\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.moveoapps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"New Features of Angular 6 Are Here to Make Developers&#8217; Lives Easier"}]},{"@type":"WebSite","@id":"https:\/\/www.moveoapps.com\/blog\/#website","url":"https:\/\/www.moveoapps.com\/blog\/","name":"Moveo Apps","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.moveoapps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/59404500d3fc1ef687e48abb867aec10","name":"Bhargav Patel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/76bba2d4a1c359a815c5f3cfec27863933eecf8884d2008798d5786216b930b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/76bba2d4a1c359a815c5f3cfec27863933eecf8884d2008798d5786216b930b3?s=96&d=mm&r=g","caption":"Bhargav Patel"},"description":"Bhargav Patel is a passionate frontend developer at MoveoApps with expertise in React Native, Angular5, NodeJS and ReactJS. With a keen interest in apps and a sharp eye for the latest trends, he doesn\u2019t let pass an opportunity to help the developer community with articles and tips on honing the craft.","sameAs":["http:\/\/www.moveoapps.com","https:\/\/www.facebook.com\/bhargav.patel.121","https:\/\/x.com\/https:\/\/twitter.com\/Bhargav_bkpatel"],"url":"https:\/\/www.moveoapps.com\/blog\/author\/bhargav-patel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/users\/101018"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/comments?post=1745"}],"version-history":[{"count":18,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1745\/revisions"}],"predecessor-version":[{"id":1915,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1745\/revisions\/1915"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/media\/1754"}],"wp:attachment":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/media?parent=1745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/categories?post=1745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/tags?post=1745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}