<?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>Angular CLI Archives | Gleamsol Solutions | AI, Software &amp; Digital Transformation</title>
	<atom:link href="http://www.gleamsol.com/category/angular-cli/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.gleamsol.com/category/angular-cli/</link>
	<description>Custom Software • AI Solutions • Mobile Apps • Business Automation</description>
	<lastBuildDate>Sat, 13 Aug 2022 11:07:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>http://www.gleamsol.com/wp-content/uploads/2019/11/cropped-favicon-32x32.png</url>
	<title>Angular CLI Archives | Gleamsol Solutions | AI, Software &amp; Digital Transformation</title>
	<link>https://www.gleamsol.com/category/angular-cli/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the difference between Promises and Observables?</title>
		<link>http://www.gleamsol.com/what-is-the-difference-between-promises-and-observables/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-the-difference-between-promises-and-observables</link>
					<comments>http://www.gleamsol.com/what-is-the-difference-between-promises-and-observables/#respond</comments>
		
		<dc:creator><![CDATA[Gleamsol Solutions]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 11:07:06 +0000</pubDate>
				<category><![CDATA[Angular CLI]]></category>
		<guid isPermaLink="false">https://www.gleamsol.com/?p=2711</guid>

					<description><![CDATA[<p>Promise A&#160;Promise&#160;handles a&#160;single event&#160;when an async operation completes or fails. Note: There are&#160;Promise&#160;libraries out there that support cancellation, but ES6&#160;Promise&#160;doesn&#8217;t so far. Observable An&#160;Observable&#160;is like a&#160;Stream&#160;(in many languages) and allows to pass zero or more events where the callback is called for each event. Often&#160;Observable&#160;is preferred over&#160;Promise&#160;because it provides the features of&#160;Promise&#160;and more. With&#160;Observable&#160;it doesn&#8217;t...</p>
<p>The post <a href="http://www.gleamsol.com/what-is-the-difference-between-promises-and-observables/">What is the difference between Promises and Observables?</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Promise</strong></p>



<p class="wp-block-paragraph">A&nbsp;<code>Promise</code>&nbsp;handles a&nbsp;<strong>single event</strong>&nbsp;when an async operation completes or fails.</p>



<p class="wp-block-paragraph">Note: There are&nbsp;<code>Promise</code>&nbsp;libraries out there that support cancellation, but ES6&nbsp;<code>Promise</code>&nbsp;doesn&#8217;t so far.</p>



<p class="wp-block-paragraph"><strong>Observable</strong></p>



<p class="wp-block-paragraph">An&nbsp;<code>Observable</code>&nbsp;is like a&nbsp;<strong><code>Stream</code></strong>&nbsp;(in many languages) and allows to pass zero or more events where the callback is called for each event.</p>



<p class="wp-block-paragraph">Often&nbsp;<code>Observable</code>&nbsp;is preferred over&nbsp;<code>Promise</code>&nbsp;because it provides the features of&nbsp;<code>Promise</code>&nbsp;and more. With&nbsp;<code>Observable</code>&nbsp;it doesn&#8217;t matter if you want to handle 0, 1, or multiple events. You can utilize the same API in each case.</p>



<p class="wp-block-paragraph"><code>Observable</code>&nbsp;also has the advantage over&nbsp;<code>Promise</code>&nbsp;to be&nbsp;<strong>cancellable</strong>. If the result of an HTTP request to a server or some other expensive async operation isn&#8217;t needed anymore, the&nbsp;<code>Subscription</code>&nbsp;of an&nbsp;<code>Observable</code>&nbsp;allows to cancel the subscription, while a&nbsp;<code>Promise</code>&nbsp;will eventually call the success or failed callback even when you don&#8217;t need the notification or the result it provides anymore.</p>



<p class="wp-block-paragraph">While a&nbsp;<code>Promise</code>&nbsp;starts immediately, an&nbsp;<code>Observable</code>&nbsp;only starts if you subscribe to it. This is why Observables are called lazy.</p>



<p class="wp-block-paragraph">Observable provides&nbsp;<strong>operators</strong>&nbsp;like&nbsp;<code>map</code>,&nbsp;<code>forEach</code>,&nbsp;<code>reduce</code>, &#8230; similar to an array</p>



<p class="wp-block-paragraph">There are also powerful operators like&nbsp;<code>retry()</code>, or&nbsp;<code>replay()</code>, &#8230; that are often quite handy.&nbsp;<a href="https://rxjs-dev.firebaseapp.com/guide/operators">A list of operators shipped with rxjs</a></p>



<p class="wp-block-paragraph">Lazy execution allows to build up a chain of operators before the observable is executed by subscribing, to do a more declarative kind of programming.</p>
<p>The post <a href="http://www.gleamsol.com/what-is-the-difference-between-promises-and-observables/">What is the difference between Promises and Observables?</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.gleamsol.com/what-is-the-difference-between-promises-and-observables/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Conditional class with *ngClass</title>
		<link>http://www.gleamsol.com/conditional-class-with-ngclass/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=conditional-class-with-ngclass</link>
					<comments>http://www.gleamsol.com/conditional-class-with-ngclass/#respond</comments>
		
		<dc:creator><![CDATA[Gleamsol Solutions]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 11:06:17 +0000</pubDate>
				<category><![CDATA[Angular CLI]]></category>
		<guid isPermaLink="false">https://www.gleamsol.com/?p=2709</guid>

					<description><![CDATA[<p>Single Class: Multiple Classes: Details: my_class &#8211; CSS class. step &#8211; Angular model step1 &#8211; Boolean condition Add block</p>
<p>The post <a href="http://www.gleamsol.com/conditional-class-with-ngclass/">Conditional class with *ngClass</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="block-3efa6283-f3f3-40fa-89a6-d76662c33b67"><strong>Single Class</strong>:</p>



<pre id="block-c86a2cf3-61fc-4b3a-be60-f1f90059fed4" class="wp-block-code"><code>&#91;ngClass]="{'my_class': step === 'step1'}"</code></pre>



<p class="wp-block-paragraph" id="block-64739bbd-2484-4eb1-91db-9190943bf57a"><strong>Multiple Classes</strong>:</p>



<pre id="block-a8bf4f58-3396-435f-b750-dbb6e05a3f8d" class="wp-block-code"><code>&#91;ngClass]="{'my_class': step === 'step1', 'my_class2' : step === 'step2' }"</code></pre>



<p class="wp-block-paragraph" id="block-7af29be5-92bb-4de7-9549-eb08e8e14244"><strong>Details</strong>:</p>



<ul class="wp-block-list" id="block-ae7eeec8-2566-40e2-b51e-ef88ed8d6930"><li><em>my_class &#8211; CSS class.</em></li><li><em>step &#8211; Angular model</em></li><li><em>step1 &#8211; Boolean condition</em></li></ul>



<p class="wp-block-paragraph">Add block</p>
<p>The post <a href="http://www.gleamsol.com/conditional-class-with-ngclass/">Conditional class with *ngClass</a> appeared first on <a href="http://www.gleamsol.com">Gleamsol Solutions | AI, Software &amp; Digital Transformation</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.gleamsol.com/conditional-class-with-ngclass/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
