<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>First Angular 5 App &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/tag/first-angular-5-app/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Tue, 10 Jul 2018 07:39:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>First Angular 5 App &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What Is New and How to Set Up our First Angular 5 Application</title>
		<link>https://mail.sibeeshpassion.com/what-is-new-and-how-to-set-up-our-first-angular-5-application/</link>
					<comments>https://mail.sibeeshpassion.com/what-is-new-and-how-to-set-up-our-first-angular-5-application/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 15 Nov 2017 11:05:26 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular 5]]></category>
		<category><![CDATA[Angular 5 Basic App]]></category>
		<category><![CDATA[First Angular 5 App]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=12535</guid>

					<description><![CDATA[[toc] Introduction We all know that the Angular version 5 is released a few weeks back, aren&#8217;t you eager to know what is there we have got in Angular 5. What makes our development easy there? Well, here in this post I am going to discuss few updates in Angular 5. By saying that,  I will not be discussing all the items which have been released with this version. Here, we will also be checking how to create our first Angular 5 application. So at the end of this article, you will have your own sample application with you. Cheers [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h3>Introduction</h3>
<p>We all know that the Angular version 5 is released a few weeks back, aren&#8217;t you eager to know what is there we have got in <a href="http://sibeeshpassion.com/category/client-side-technologies/angular/">Angular</a> 5. What makes our development easy there? Well, here in this post I am going to discuss few updates in Angular 5. By saying that,  I will not be discussing all the items which have been released with this version. Here, we will also be checking how to create our first Angular 5 application. So at the end of this article, you will have your own sample application with you. Cheers for that. I hope you will like this article.</p>
<h3><span id="developing-an-angular-5-app-series"><em>Developing an Angular 5 App</em> series</span></h3>
<p>These are the previous posts in this series. Please go ahead and have a look.</p>
<ol>
<li><a href="http://sibeeshpassion.com/what-is-new-and-how-to-set-up-our-first-angular-5-application/">What Is New and How to Set Up our First Angular 5 Application</a></li>
<li><a href="http://sibeeshpassion.com/angular-5-basic-demo-project-overview/">Angular 5 Basic Demo Project Overview</a></li>
<li><a href="http://sibeeshpassion.com/generating-your-first-components-and-modules-in-angular-5-app/">Generating Your First Components And Modules in Angular 5 App</a></li>
</ol>
<h3>Source Code</h3>
<p>You can always clone or download the source code <a href="https://github.com/SibeeshVenu/ng5">here</a></p>
<h3>Background</h3>
<p>As I mentioned earlier, this post is going to give you an introduction to the changes or updates in Angular 5. The application we are going to create is a basic Angular application with the help Angular CLI and NPM (Node Package Manager). So if you have not installed <a href="http://sibeeshpassion.com/category/client-side-technologies/node-js/">NodeJS</a> on your machine, please go ahead and install it from <a href="https://nodejs.org/en/">here</a>. Now let&#8217;s see the key updates in Angular 5.</p>
<h3>What is new in Angular 5?</h3>
<p>Though there are quite a few updates, I would say more concentration was given to the area of performance and efficiency. Below is the list of key area updates.</p>
<h4>AOT compiler</h4>
<p>AOT is Ahead of Time compiler, what it does is, as the name implies, it converts all of our TypeScript codes to native JavaScript code to make sure that it supports in all the browsers. The same was being done by Just In Compiler in the previous version, so what makes the difference? AOT converts the code before it runs in the browser, whereas JIT converts it at runtime.  Hence the page renders faster.</p>
<h4>Optimizations</h4>
<p>As I mentioned earlier, the development team was concentrating more on the performance aspects of Angular 5. Two of such improvements are,</p>
<ol>
<li>Boost speed</li>
<li>Smaller Bundles</li>
</ol>
<h4>Package Updates</h4>
<p>There are some updates in few packages, and some of them are,</p>
<ol>
<li>Now Angular CLI 1.5 has Angular 5</li>
<li>RXJS version is been upgraded to 5.5</li>
<li>TypeScript is been updated to 2.4</li>
</ol>
<h4>New HttpClient</h4>
<p>There are some changes in some modules as well, the new HttpClient module is faster and lighter than the previous version. Hence the old Http module is deprecated, however, you can still use the same in your applications, it is just that, the same will vanish in any future updates. The new module can be imported as below.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="js">Import {HttpClientModule} from ‘@angular/common/http’</pre>
<h4>Other Updates</h4>
<p>There are some other updates related to many modules and categories. Few of them are,</p>
<ol>
<li>Some changes in form validation, specifically in blur and on submit</li>
<li>The pipes are more standardized and internationalized now</li>
<li>Old pipes are deprecated now</li>
<li>A new module ServerTransferStateModule is introduced</li>
</ol>
<p>Sorry that I am not including any code snippets to highlight the actual changes, I will be writing an article very soon with full code changes.</p>
<h3>Creating your first Angular 5 application</h3>
<p>To create an Angular application easily, the first thing you may need to do is, Installing Angular CLI. I hope you had already done it. Let&#8217;s just jump into the process now.</p>
<p>Open your Node Package Manager Console and create a directory where we are going to download all the Angular files.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">mkdir Angular5</pre>
<p>Now we can move our cursor to that folder.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">cd Angular5</pre>
<p>Now we can check whether the Node and NPM is already installed or not.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="js">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;node -v</pre>
<p>If it is installed you will get the version, for me it was v7.9.0</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;npm -v</pre>
<p>My NPM version is 4.2.0</p>
<p>By any chance, if you need to update your NPM version, you can always do that with the help of the preceding command.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;npm i -g npm</pre>
<p>Once after I update my NPM version, the command <em>npm -v </em>was showing as 5.5.1. So now we are good to go. Our next step is to install Angular CLI, let&#8217;s do it.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;npm install @angular/cli -g</pre>
<p>If you want to check the version of your Angular CLI, you can use the below command.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;ng -v</pre>
<p>The result may look like below.</p>
<blockquote><p>Angular CLI: 1.5.0<br />
Node: 7.9.0<br />
OS: win32 ia32<br />
Angular:<br />
&#8230;</p></blockquote>
<p>Now it is time to create our Angular Project, please use the preceding command for the same.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;ng new MyAngular5App</pre>
<p>Here MyAngular5App is the project name. Once you run the command, it will do 3 tasks.</p>
<ol>
<li>Creating the components which are needed</li>
<li>Installing packages for tooling via npm.</li>
<li>Initializing git</li>
</ol>
<p>Now if you go to your project directory, you can see all the files has been included there already. You can go ahead and open the files in any source code editors.</p>
<p>As the last step, we need to run our application.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">D:\SVenu\FullStackDevelopment\Angular\Angular5&gt;cd MyAngular5App

D:\SVenu\FullStackDevelopment\Angular\Angular5\MyAngular5App&gt;ng serve</pre>
<p>The above command will build your application and serve the port 4200 by default. You may see the preceding output in the command window.</p>
<blockquote><p>** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **<br />
Date: 2017-11-15T07:45:17.925Z<br />
Hash: dd334581365d3dd74dfd<br />
Time: 21845ms<br />
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]<br />
chunk {main} main.bundle.js (main) 24.3 kB [initial] [rendered]<br />
chunk {polyfills} polyfills.bundle.js (polyfills) 554 kB [initial] [rendered]<br />
chunk {styles} styles.bundle.js (styles) 34.9 kB [initial] [rendered]<br />
chunk {vendor} vendor.bundle.js (vendor) 8.03 MB [initial] [rendered]</p>
<p>webpack: Compiled successfully.</p></blockquote>
<p>Let&#8217;s run our application by running  <a href="http://localhost:4200">http://localhost:4200</a> now. I am sure you will get an Angular application as preceding.</p>
<div id="attachment_12538" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2017/11/Angular_5-e1510740234143.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-12538" class="size-full wp-image-12538" src="http://sibeeshpassion.com/wp-content/uploads/2017/11/Angular_5-e1510740234143.png" alt="Angular_5" width="634" height="375" /></a><p id="caption-attachment-12538" class="wp-caption-text">Angular_5</p></div>
<h3><span id="conclusion">Conclusion</span></h3>
<p>Thanks a lot for reading. Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<h3><span id="your-turn-what-do-you-think">Your turn. What do you think?</span></h3>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/what-is-new-and-how-to-set-up-our-first-angular-5-application/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
