<?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>Pro-Tek Blog &#187; Angular</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/category/angular/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>AG-GRID IN ANGULAR</title>
		<link>http://www.pro-tekconsulting.com/blog/ag-grid-in-angular/</link>
		<comments>http://www.pro-tekconsulting.com/blog/ag-grid-in-angular/#comments</comments>
		<pubDate>Fri, 18 Jan 2019 02:43:40 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[AG-Grid in Angular]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2870</guid>
		<description><![CDATA[<p>AG-Grid in Angular: The &#8220;ag&#8221; part of ag-Grid stands for &#8220;agnostic&#8221;. The internal ag-Grid engine is executed in TypeScript with zero dependencies. ag-Grid supports Angular through a wrapper component. The wrapper lets the user to use ag-Grid in the application like any other Angular component. In this article, we will walk you through the essential [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/ag-grid-in-angular/">AG-GRID IN ANGULAR</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>AG-Grid in Angular:</h4>
<p><img class="aligncenter size-medium wp-image-2872" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2019/01/AG-Grid-in-Angular-300x238.jpg" alt="AG-Grid in Angular" width="300" height="238" /></p>
<p>The &#8220;ag&#8221; part of ag-Grid stands for &#8220;agnostic&#8221;. The internal ag-Grid engine is executed in TypeScript with zero dependencies. ag-Grid supports Angular through a wrapper component. The wrapper lets the user to use ag-Grid in the application like any other Angular component.</p>
<p>In this article, we will walk you through the essential steps to add ag-Grid to an existing Angular project, and configure some of the essential features of it.</p>
<p><strong>Adding ag-Grid to the project: </strong></p>
<p>ag-Grid and its Angular wrapper are distributed as NPM packages, which should work with any common Angular project module bundler setup. Let&#8217;s follow the Angular CLI instructions &#8211; run the following in the developer’s terminal:</p>
<p>npm install -g @angular/cli<br />
ng new my-app &#8211;style scss &#8211;routing false<br />
cd my-app<br />
ng serve</p>
<p>Further, add the ag-Grid NPM packages and run the following command in my-app:</p>
<p>npm install &#8211;save ag-grid-community ag-grid-angular</p>
<p>Now, let&#8217;s add the ag-Grid Angular module to the app module:</p>
<p>import { BrowserModule } from &#8216;@angular/platform-browser';<br />
import { NgModule } from &#8216;@angular/core';</p>
<p>import { AppComponent } from &#8216;./app.component';<br />
import { AgGridModule } from &#8216;ag-grid-angular';</p>
<p>@NgModule({<br />
declarations: [AppComponent],<br />
imports: [BrowserModule, AgGridModule.withComponents([])],<br />
providers: [],<br />
bootstrap: [AppComponent]<br />
})<br />
export class AppModule {}</p>
<p>The next step is to add the ag-Grid styles &#8211; import them in styles.scss:</p>
<p>@import &#8220;~ag-grid-community/dist/styles/ag-grid.css&#8221;;<br />
@import &#8220;~ag-grid-community/dist/styles/ag-theme-balham.css&#8221;;</p>
<p>The above code imports the grid &#8220;structure&#8221; stylesheet (ag-grid.css), and one of the available grid themes: (ag-theme-balham.css). The grid ships have some different themes; pick one that matches the project design.</p>
<p>Next, let&#8217;s declare the basic grid configuration. Edit src/app.component.ts:</p>
<p>import { Component } from &#8216;@angular/core';</p>
<p>@Component({<br />
selector: &#8216;app-root&#8217;,<br />
templateUrl: &#8216;./app.component.html&#8217;,<br />
styleUrls: [&#8216;./app.component.scss&#8217;]<br />
})<br />
export class AppComponent {<br />
title = &#8216;app';</p>
<p>columnDefs = [<br />
{headerName: &#8216;Make&#8217;, field: &#8216;make&#8217; },<br />
{headerName: &#8216;Model&#8217;, field: &#8216;model&#8217; },<br />
{headerName: &#8216;Price&#8217;, field: &#8216;price&#8217;}<br />
];</p>
<p>rowData = [<br />
{ make: &#8216;Toyota&#8217;, model: &#8216;Celica&#8217;, price: 35000 },<br />
{ make: &#8216;Ford&#8217;, model: &#8216;Mondeo&#8217;, price: 32000 },<br />
{ make: &#8216;Porsche&#8217;, model: &#8216;Boxter&#8217;, price: 72000 }<br />
];<br />
}</p>
<p>The above code represents two vital configuration properties of the grid &#8211; the column definitions and the data. In this case, the column definitions contain three columns, each column entry stipulates the header label and the data field to be displayed in the body of the table.</p>
<p>Finally, let&#8217;s add the component definition to the template. Edit app/app.component.html and remove the scaffold code:</p>
<p>&lt;ag-grid-angular<br />
style=&#8221;width: 500px; height: 500px;&#8221;<br />
class=&#8221;ag-theme-balham&#8221;<br />
[rowData]=&#8221;rowData&#8221;<br />
[columnDefs]=&#8221;columnDefs&#8221;<br />
&gt;<br />
&lt;/ag-grid-angular&gt;</p>
<p>This is the ag-grid component definition, with two property bindings &#8211; rowData and columnDefs. The component also accepts the standard DOM style and class.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/ag-grid-in-angular/">AG-GRID IN ANGULAR</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/ag-grid-in-angular/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHAT’S NEW IN ANGULAR 6</title>
		<link>http://www.pro-tekconsulting.com/blog/whats-new-in-angular-6/</link>
		<comments>http://www.pro-tekconsulting.com/blog/whats-new-in-angular-6/#comments</comments>
		<pubDate>Sat, 16 Jun 2018 03:44:42 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[ANGULAR 6]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2559</guid>
		<description><![CDATA[<p>What’s New in Angular 6 As many of you know Angular 6 is already out. At outset, this release of Angular 6 is lighter, faster, and easier. Developers will start loving it more as it makes their development future much easier. In this article we are going to cover the latest major release, Angular 6, [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-new-in-angular-6/">WHAT’S NEW IN ANGULAR 6</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What’s New in Angular 6</h4>
<p><img class="aligncenter wp-image-2563" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2018/06/65.jpg" alt="65" width="350" height="299" /><br />
As many of you know Angular 6 is already out. At outset, this release of Angular 6 is lighter, faster, and easier. Developers will start loving it more as it makes their development future much easier. In this article we are going to cover the latest major release, Angular 6, which focuses on making Angular smaller and faster to use.</p>
<p>Let&#8217;s go through the major changes in Angular 6.</p>
<p><strong>IMPROVED SERVICE WORKER SUPPORT</strong></p>
<p>Angular 6 now supports the configuration of navigation URLs in Service Workers. The service worker will readdress navigation requests that don&#8217;t match any asset or data group to the specified index file.</p>
<p>By default, a navigation request can have any URL and URLs containing a file extension in the last path segment. Sometimes it is great to be able to configure different rules for the URLs of navigation requests (e.g. ignore specific URLs and pass them through to the server).</p>
<p>Now, the developer can specify an optional navigationUrls list in ngsw-config.json. Before that, the service worker would enter a degrade mode where only current clients would be served if either the client or server was offline while trying to fetch ngsw.json. In Angular 6, the service worker remains in the current mode till connectivity to the server is restored.</p>
<p><strong>NG UPDATE </strong></p>
<p>The new CLI command analyzes your package.json and uses its knowledge of Angular to recommend updates to users application. It will help the developers to adopt the right version of dependencies, and keep dependencies in sync. In addition to updating dependencies and earl dependencies, ng update will apply needed transforms to your project.</p>
<p><strong>CLI WORKSPACES</strong></p>
<p>CLI v6 now offers support for workspaces containing various projects, such as numerous applications or libraries. CLI projects will now use angular.json instead of .angular-cli.json for build and project configuration. Each CLI workspace will have projects, each project will have targets, and each target can have configurations.</p>
<p><strong>FORMS VALIDATION IN ANGULAR 6</strong></p>
<p>Before, ngModelChange was always emitted, earlier the underlying form control was updated.</p>
<p>If the user had a handler for the ngModelChange event that checked the value through the control, the old value would be logged instead of the simplified value. This is not the case if the user passes the value through the $event keyword directly.</p>
<p><strong>TOKEN MARKING FOR RUNTIME ANIMATION CONTEXT</strong></p>
<p>In Angular 6, it&#8217;s now possible to define which animation context is used for a component at runtime. A token is provided as a marker to determine whether the component is running a BrowserAnimationsModule or NoopAnimationsModule context at runtime.</p>
<p><strong>SCHEMATICS</strong></p>
<p>Schematics is a new shell that is used by Angular CLI to create custom templates. The Angular team has always been keen on improving developer productivity which explains the birth of schematics. With schematics the developer can easily create Angular libraries.</p>
<p>First, install the necessary schematic tools:</p>
<div class="bg" style="background-color: #1da1f2; padding: 3px;">npm i -g ng-lib-schematics @angular-devkit/core @angular-devkit/schematics-cli</div>
<p>Next, create a new angular-cli project:</p>
<div class="bg" style="background-color: #1da1f2; padding: 3px;">ng new avengers &#8211;skip-install // avengers is the name of the new library I&#8217;m trying to create</div>
<p>Finally, the developer can just run schematics like so:</p>
<div class="bg" style="background-color: #1da1f2; padding: 3px;">schematics ng-lib-schematics:lib-standalone &#8211;name avengers</div>
<p>A new lib directory will be generated inside the src folder. The lib directory ships with a sample demo and then build tools necessary for a typical Angular package.</p>
<p><strong>THE VERDICT</strong></p>
<p>Angular 6 came full with new features and significant improvements. Thanks to the Angular team on making Angular faster and better to use.</p>
<p>Have you upgraded to Angular 6 yet? What are your opinions? Did you notice any major improvement? Let us know!</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-new-in-angular-6/">WHAT’S NEW IN ANGULAR 6</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/whats-new-in-angular-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TOP MISTAKES DEVELOPERS DO WHILE CODING WITH ANGULAR</title>
		<link>http://www.pro-tekconsulting.com/blog/top-mistakes-developers-do-while-coding-with-angular/</link>
		<comments>http://www.pro-tekconsulting.com/blog/top-mistakes-developers-do-while-coding-with-angular/#comments</comments>
		<pubDate>Fri, 02 Feb 2018 04:03:03 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2402</guid>
		<description><![CDATA[<p>Top Mistakes Developers Do While Coding with Angular AngularJS is one of the most popular JavaScript frameworks accessible today. AngularJS major goal is to bridge the development process which makes it great for prototyping small applications, but its power allows scaling to full-featured client-side applications. The combination affluence of development, breadth of features, and performance [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/top-mistakes-developers-do-while-coding-with-angular/">TOP MISTAKES DEVELOPERS DO WHILE CODING WITH ANGULAR</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Top Mistakes Developers Do While Coding with Angular</h4>
<p><img class="aligncenter size-medium wp-image-2403" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2018/02/Top-Mistakes-Developers-Do-While-Coding-with-Angular-300x255.jpg" alt="Top Mistakes Developers Do While Coding with Angular" width="300" height="255" /></p>
<p>AngularJS is one of the most popular JavaScript frameworks accessible today. AngularJS major goal is to bridge the development process which makes it great for prototyping small applications, but its power allows scaling to full-featured client-side applications. The combination affluence of development, breadth of features, and performance has led to wide implementation, and wide implementation comes with many common drawbacks. This list captures common AngularJS mistakes, so explore this article and know the major mistakes done by developers while coding with Angular.</p>
<p><b>USING NGONCHANGES TO SPOT QUERY LIST CHANGES</b></p>
<p>In Angular 1, if the user wanted to be notified when a value changed, the user has to set a $scope.$watch and physically check for changes in each digest cycle. In Angular 2, the ngOnChanges links greatly and streamlines this process. Once the user defines a ngOnChanges method in his/her component class, it will be called whenever the component&#8217;s inputs change.</p>
<p>But, the ngOnChanges method executes only when the component&#8217;s inputs change -especially, those items the user have included in his/her inputs array or explicitly labeled with an @Input decorator. It will not be called when items are added or removed from @ViewChildren or @ContentChildren query lists.</p>
<p>If the user wants to be alerted for changes in a query list, then the user should not use ngOnChanges. In its place, the user should subscribe to the query list&#8217;s built-in observable, it &#8220;changes&#8221; property. As long as the user do so in the proper lifecycle link, the user will be alerted whenever an item is added or removed.</p>
<p>@Component({ selector: &#8216;my-list&#8217; })<br />
export class MyList implements AfterContentInit {<br />
@ContentChildren(ListItem) items: QueryList;</p>
<p>ngAfterContentInit() {<br />
this.items.changes.subscribe(() =&gt; {<br />
// will be called every time an item is added/removed<br />
});<br />
}<br />
}<br />
<b>CALLING DOM APIS DIRECTLY</b></p>
<p>There are very few circumstances where manipulating the DOM directly is necessary. Angular 2 provides a set of leading, high-level APIs such as queries that one can use instead. Leveraging these APIs confers distinct advantages:</p>
<ul>
<li>It is possible to unit test the application without touching the DOM, which removes difficulty from testing and helps the user tests run faster.</li>
<li>It decouples the user’s code from the browser, allowing the user to run the application in any rendering context, such as web workers or outside of the browser completely.</li>
</ul>
<p>When the user manipulates the DOM manually, the user will miss out the above advantages and ultimately end up writing less expressive code.</p>
<p><strong>QUERY RESULTS IN THE CONSTRUCTOR</strong></p>
<p>While playing around with queries, it is easy to fall into this ploy.<br />
@Component({&#8230;})<br />
export class MyComp {<br />
@ViewChild(SomeDir) someDir: SomeDir;<br />
constructor() {<br />
console.log(this.someDir);    // undefined<br />
}<br />
}</p>
<p>When the console logs are &#8220;undefined&#8221;, the developer might assume the query is not working or the developer itself constructed it imperfectly. It is important to remember that query results are not yet available when the constructor executes.</p>
<p><strong>BINDING TO THE NATIVE &#8220;HIDDEN&#8221; PROPERTY </strong></p>
<p>In Angular 1, if the user wants to adjust the visibility of an element, the user can use one of the Angular&#8217;s built-in directives, such as ng-show or ng-hide</p>
<p><b>Angular 1 example:</b></p>
<div>
<p><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;div ng-show=&#8221;showGreeting&#8221;&gt;</span></span></span></span></p>
<p><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"> Hello, there!</span></span></span></span></p>
<p><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"> &lt;/div&gt; </span></span></span></span></p>
</div>
<p>In Angular 2, template syntax makes it available to bind to any native property of an element. This is very powerful and opens up a number of possibilities. One option to bind to the native hidden property, which is similar to ng-show, and sets the display to &#8220;none&#8221;.</p>
<p><b>Angular 2 [hidden] example:</b></p>
<p><span style="color: #000000;"> <span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"> &lt;div [hidden]=&#8221;!showGreeting&#8221;&gt;</span></span></span></span></p>
<p><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"> Hello, there!</span></span></span></span></p>
<p><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"> &lt;/div&gt; </span></span></span></span></p>
<p>At first sight, binding to the hidden property seems like the closest cousin to Angular 1 ng-show. However, there is one &#8220;!important&#8221; difference.</p>
<p>ng-show &amp; ng-hide together handles visibility by adjusting &#8220;ng-hide&#8221; CSS class on the element, which sets the show property to &#8220;none&#8221; when applied. Importantly, Angular controls this style and postscripts it with &#8220;!important&#8221; to assure that it always overrides any other display styles set on that element.</p>
<p><b>THE VERDICT</b></p>
<p>AngularJS is a great framework that continues to grow with the community. AngularJS is still a growing concept, but hopefully by following these pacts some of the major pitfalls of scaling an AngularJS can be averted.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/top-mistakes-developers-do-while-coding-with-angular/">TOP MISTAKES DEVELOPERS DO WHILE CODING WITH ANGULAR</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/top-mistakes-developers-do-while-coding-with-angular/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ANGULAR 2 VS ANGULAR 4</title>
		<link>http://www.pro-tekconsulting.com/blog/angular-2-vs-angular-4/</link>
		<comments>http://www.pro-tekconsulting.com/blog/angular-2-vs-angular-4/#comments</comments>
		<pubDate>Thu, 07 Dec 2017 02:32:12 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular 2 Vs Angular 4]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2296</guid>
		<description><![CDATA[<p>Angular 2 Vs Angular 4 The year 2015-2017 saw a host of new frameworks from the house of JavaScript. Though several of their offerings were unsuccessful to make a resounding impact, Angular and React survived the test of time to become the go to frameworks for successful Angular development. With several frameworks have made headway [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-2-vs-angular-4/">ANGULAR 2 VS ANGULAR 4</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Angular 2 Vs Angular 4</h4>
<p>The year 2015-2017 saw a host of new frameworks from the house of JavaScript. Though several of their offerings were unsuccessful to make a resounding impact, Angular and React survived the test of time to become the go to frameworks for successful Angular development. With several frameworks have made headway in the world of application development, Angular has found a special place as one of the best open-source JavaScript frameworks.</p>
<p>This article focusses on the basic comparison between <i>Angular2 and Angular4</i> and whether or not it is good enough to make a switch. First, let us explore in detail the various features and highlights of Angular2 to be able to make a practical comparison with its successor.</p>
<p><strong>ANGULAR-2</strong></p>
<p>The Angular version two was primarily aimed at the development of mobile applications allowing developers to create a cross platform environment for their applications. The key highlight of Angular 2 was the removal of various supplementary modules from Angular’s core which simplified the process thus improving the performance. The supplementary modules have now found their way to Angular’s ever-growing library of modules where the users can effectively choose and select the components they want while leaving out the redundant components.</p>
<p><b>Angular 2</b> was specifically aimed at ES6 and “evergreen” modern browsers. The advantageous point of these browsers is that these automatically update to the most recent version. While developing for these browsers, Angular 2 provides various hacks and workarounds that allow the developers greater freedom build their code. Angular 2 eliminates several limitations that existed previously.</p>
<p><strong>ANGULAR 2: FEATURES AND PERFORMANCE</strong></p>
<p><i>Angular 2</i> was developed on AtScript, which is a superset of ES6. Traceur compiler combined with ES6 was employed to process Angular that enables it to generate ES5 code. It utilizes TypeScript syntax to create runtime type assertions instead of compiling time tests. However, it is not compulsory to use AtScript to compose Angular apps. The user can alternatively use plain JavaScript or ES5 to attain effective results. Let us explore deeper into the various key features of Angular 2.</p>
<p><strong>RENEWED DEPENDENCY INJECTION (DI)</strong></p>
<p>Dependency Injection was one of the important factors that set Angular apart from its primary competitors. Dependency Injection refers to a program design pattern where a specific program commendably gets hold of its dependencies instead of producing them. Dependency Injection is very helpful in cases of modular development and element isolation. Despite that DI has also faced several obstacles since the era of Angular 1.x. Angular 2 finally came with the answers to the problems along with some of the missing features such as child injectors and lifetime/scope control.</p>
<p><strong>ANNOTATION</strong></p>
<p>One of the major advantages of Atscript is that it supplies useful tools that can help functionally link metadata. This eases out the process of building the object instances by supplying the essential material into the DI library. The information entered will check for the relevant metadata when a function is called, or a class instance is created. A developer can also easily override the parameter information by hitting the “Inject” annotation.</p>
<p><strong>CHILD INJECTORS</strong></p>
<p>A child injector has the privileges such that it inherits all the functionalities possessed by its parent injectors, but it also comes with a capacity to override them at the child level. This capability provided by Angular 2 gives the developer a free hand to call out and mechanically override several components under a variety of scopes as the situation would demand.</p>
<p><strong>ANGULAR4</strong></p>
<p>Even though <i>Angular 2</i> was a significant improvement from its predecessors, <i>Angular 4</i> takes it forward with some new features and improved capabilities.</p>
<p>Let us study one by one how Angular 4 has secured itself an edge over Angular 2 and how AngularJS development organizations can leverage it.</p>
<p><strong>FASTER AND COMPACT</strong></p>
<p><b>Angular 4</b> applications are smaller as they consume less space and run faster than its older versions. The team working behind Angular are constantly making developments on a regular basis to iron out the inconsequential technical glitches that may exist.</p>
<p><strong>SIGNIFICANT VIEW ENGINE IMPROVEMENT</strong></p>
<p><i>Angular 4</i> series have come up with several changes which also include several view engine twists to diminish the size of the generated code for various components by as much as 60 percent. This update version has claimed to reduce huge production bundles to mere kilobytes.</p>
<p><strong>ENHANCED *NGIF AND *NGFOR</strong></p>
<p>One of the main features that Angular boasts of are an improved template binding syntax. The improvement of the *ngIf and *ngFor comes after significant criticism for the lack of the “else” and “if-then-else” clause. Developers can employ an if/else design syntax, or introduce local variables such as “if” to unroll an observable.</p>
<p><strong>THE VERDICT</strong></p>
<p>Angular has come a long way since Angular 1.x to reach the version that prevails today. This evolution of Angular is expected to continue to bring in more revolutionary features to make the development team’s job easier. Even though Angular can be slight challenging to adapt at first, but those who are familiar with the functioning of Angular 2, will find it simpler to adopt Angular 4.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-2-vs-angular-4/">ANGULAR 2 VS ANGULAR 4</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/angular-2-vs-angular-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DESCRIBE A HASH TABLE</title>
		<link>http://www.pro-tekconsulting.com/blog/describe-a-hash-table/</link>
		<comments>http://www.pro-tekconsulting.com/blog/describe-a-hash-table/#comments</comments>
		<pubDate>Wed, 08 Nov 2017 02:21:14 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[hash table]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2249</guid>
		<description><![CDATA[<p>Describe a hash table A hash table is a data structure that produces an associative array. A key is mapped to certain values through the use of a hash function. They are often used for tasks such as database indexing.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/describe-a-hash-table/">DESCRIBE A HASH TABLE</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Describe a hash table</h4>
<p>A hash table is a data structure that produces an associative array. A key is mapped to certain values through the use of a hash function. They are often used for tasks such as database indexing.</p>
<p><img class="aligncenter size-medium wp-image-2250" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2017/11/hash-table-300x234.png" alt="hash table" width="300" height="234" /></p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/describe-a-hash-table/">DESCRIBE A HASH TABLE</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/describe-a-hash-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHAT IS NAMESPACING AND WHY IS IT IMPORTANT?</title>
		<link>http://www.pro-tekconsulting.com/blog/what-is-namespacing-and-why-is-it-important/</link>
		<comments>http://www.pro-tekconsulting.com/blog/what-is-namespacing-and-why-is-it-important/#comments</comments>
		<pubDate>Tue, 07 Nov 2017 07:41:44 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[NAMESPACING]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2235</guid>
		<description><![CDATA[<p>What is namespacing and why is it important? Namespacing is a technique employed to avoid collisions with other objects or variables in the global namespace. Its Important for helping organized blocks of functionality in the application into easily manageable groups which can be uniquely identified. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-namespacing-and-why-is-it-important/">WHAT IS NAMESPACING AND WHY IS IT IMPORTANT?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What is namespacing and why is it important?</h4>
<p>Namespacing is a technique employed to avoid collisions with other objects or variables in the global namespace. Its Important for helping organized blocks of functionality in the application into easily manageable groups which can be uniquely identified.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/what-is-namespacing-and-why-is-it-important/">WHAT IS NAMESPACING AND WHY IS IT IMPORTANT?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/what-is-namespacing-and-why-is-it-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ANGULAR 4.2</title>
		<link>http://www.pro-tekconsulting.com/blog/angular-4-2/</link>
		<comments>http://www.pro-tekconsulting.com/blog/angular-4-2/#comments</comments>
		<pubDate>Thu, 10 Aug 2017 02:20:16 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular 4.2]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2144</guid>
		<description><![CDATA[<p>Angular 4.2 The Angular team continues to publish new versions of Angular according to the Semantic versioning. Angular version 4 was released on March 16, six months’ later version 2 was released. In the last three months two minor versions and a lot of patch versions were born with new stuff. Angular 4.2 is already [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-4-2/">ANGULAR 4.2</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Angular 4.2</h4>
<p>The Angular team continues to publish new versions of Angular according to the Semantic versioning. Angular version 4 was released on March 16, six months’ later version 2 was released. In the last three months two minor versions and a lot of patch versions were born with new stuff. Angular 4.2 is already here and we have a huge number of new features added for making animations easier and powerful. Part of them are defining the reusable animations, querying for inner elements, animating when routes change and building/controlling an animation using AnimationBuilder. So, let’s dive deep-in and know about the new features in Angular 4.2.</p>
<p><img class="aligncenter wp-image-2146" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2017/08/Angular-4.2-300x183.jpg" alt="Angular 4.2" width="400" height="244" /></p>
<p><strong>WHAT&#8217;S NEW?</strong></p>
<ul>
<li>Angular Forms now includes validators for min and max attributes.</li>
<li>Developer can now bootstrap a component directly by passing an element reference to the bootstrap method of an ApplicationRef.</li>
<li>Enhanced i18n tooling including MissingTranslationStrategy and location notes in xliff2 files.</li>
<li>New compiler flag alwaysCompileGeneratedCode is available in opt-in, and will be turned on by default in the future.</li>
</ul>
<p><strong>NEW FEATURES IN ANGULAR 4.2</strong><br />
<strong>Forms</strong></p>
<p>Two new validators joins the existing requirement, minLength, maxLength, email, and pattern. Min and Max helps the developer to validate whether the input is at least or at most the value specified or not.</p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en"><b>&lt;input type=&#8221;number&#8221; [(ngModel)]=&#8221;user.age&#8221; min=&#8221;0&#8243; max=&#8221;130&#8243;&gt;</b></span></span></span></p>
<p>Update (2017-06-17): The min and max validators have been temporarily removed from Angular in version 4.2.3, as they are a breaking change. They’ll return in a major version, maybe 5.0.0.</p>
<p><strong>Angular Animations</strong></p>
<p>There are huge number of new features to make working with Animations easier and more powerful. Some of the new feature are:</p>
<ul>
<li>Configure options and set input variables within animations.</li>
<li>Define reusable animations using animation().</li>
<li>Stagger multiple elements within an animation using stagger().</li>
<li>Enable queried elements to trigger their own animations.</li>
<li>Orchestrate a full-blown animation when routes change.</li>
<li>Programmatically build/control an animation using AnimationBuilder</li>
</ul>
<p>A new query function has been introduced in the animation DSL, allowing to query the elements in the template. It uses querySelectorAll behind the scene, so the developer can use an element or a class as parameter. It also supports pseudo-selectors, and that opens a few interesting possibilities!</p>
<p>For example, you can now easily animate elements in a NgFor:</p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;div [@races]=&#8221;races?.length&#8221;&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;button class=&#8221;btn btn-primary mb-2&#8243; (click)=&#8221;toggle()&#8221;&gt;Toggle&lt;/button&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;div *ngFor=&#8221;let race of races | slice:0:4&#8243;&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;h2&gt;{{race.name}}&lt;/h2&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;p&gt;{{race.startInstant}}&lt;/p&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;/div&gt;</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">&lt;/div&gt;</span></span></span></p>
<p><strong>WITH THE FOLLOWING ANIMATION</strong></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">trigger(&#8216;races&#8217;, [</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">transition(&#8216;* =&gt; *&#8217;, [</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">query(&#8216;:leave&#8217;, [</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">animate(1000, style({ opacity: 0 }))</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">], { optional: true }),</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">query(&#8216;:enter&#8217;, [</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">style({ opacity: 0 }),</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">animate(1000, style({ opacity: 1 }))</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">], { optional: true })</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">])</span></span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span lang="en">])</span></span></span></p>
<p>Now, every time an element is removed from the races array, it will slowly fade out. And when an element enters, it will slowly fade’s in.</p>
<p>Animation has also been added to build reusable animations. The syntax allows to have dynamic parameters with default values. The developer need to use a reusable animation, they can call useAnimation, and override the default parameters if they want to.</p>
<p><strong>FINAL WORD</strong></p>
<p>That’s all for this release! The focus was mainly on animations and tests, and the team is also working on reducing the bundle size of the applications, with the help of the Google Closure Compiler. We think we are going to learn more about that very soon!</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-4-2/">ANGULAR 4.2</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/angular-4-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ANGULAR 1 Vs ANGULAR 2</title>
		<link>http://www.pro-tekconsulting.com/blog/angular-1-vs-angular-2/</link>
		<comments>http://www.pro-tekconsulting.com/blog/angular-1-vs-angular-2/#comments</comments>
		<pubDate>Thu, 05 Jan 2017 04:53:14 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular 1 Vs Angular 2]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1812</guid>
		<description><![CDATA[<p>Angular 1 Vs Angular 2 AngularJS is a structural framework for dynamic web apps. It lets the user to use HTML as their template language and extends HTML&#8217;s syntax to express their application&#8217;s components clearly and concisely. There are many conceptual and syntactical differences between Angular 1 and Angular 2. In this article, we are [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-1-vs-angular-2/">ANGULAR 1 Vs ANGULAR 2</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Angular 1 Vs Angular 2</h4>
<p>AngularJS is a structural framework for dynamic web apps. It lets the user to use HTML as their template language and extends HTML&#8217;s syntax to express their application&#8217;s components clearly and concisely.</p>
<p>There are many conceptual and syntactical differences between Angular 1 and Angular 2. In this article, we are going to explain you the major differences between the above frameworks.</p>
<p>1) AngularJS 1 is easy to setup. All you need to do is to add a reference to the library and you are good to go. Whereas AngularJS 2 is dependent on other libraries and it requires some efforts to set up.</p>
<p>2) Angular 2 provides more choice for languages. The developer can use any of the languages from ES5, ES6, TypeScript or Dart to write Angular 2 code. Whereas, Angular 1 supports only ES5, ES6, and Dart.</p>
<p>3) Angular does not have in-built with mobile support, whereas Angular 2 is mobile oriented.</p>
<p>4) In Angular 1 there is no usage of controllers and $scope, whereas in Angular 2 con-trollers has been replaced with components. Angular 2 is component based.</p>
<p><strong>ANGULAR 2 COMPONENTS USING TYPESCRIPT</strong></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">import { Component } from &#8216;angular2/core';</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">@Component({</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">selector: &#8216;prodsdata&#8217;,</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">template: `</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;h3&gt;{{prods.name}}&lt;/h3&gt; `</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">})</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">export class ProductComponent {</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">prods = { name: &#8216;Prod1&#8242;, quantity: 1 };</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">}</span></span></p>
<p>* Angular 1 consists of two ways to bootstrap angular. One is using ng-app attribute and other through code.</p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;script&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">angular.element(document).ready(function() {</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">angular.bootstrap(document, [&#8216;myApp&#8217;]);</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">});</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;/script&gt;</span></span></p>
<p><strong>SAY GOODBYE TO NG-APP</strong></p>
<p>Angular 2 doesn’t support ng-app. Say goodbye to ng-app. The only way to support angular is through code.</p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">import { bootstrap } from &#8216;angular2/platform/browser';</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">import { ProductComponent } from &#8216;./product.component';</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">bootstrap(ProductComponent);</span></span></p>
<p>The bootstrap is a function; it takes starting component which is also a parent component of the angular application.</p>
<p>* The Structural directives syntax is changed. ng-repeat is replaced with *ngFor in Angular 2.</p>
<p><strong>ANGULAR 1 STRUCTURAL DIRECTIVES</strong></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;ul&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;li ng-repeat=&#8221;technology in technologies&#8221;&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">{{technology.name}}</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;/li&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;/ul&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;div *ngIf=&#8221;technologies.length&#8221;&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;h3&gt;You have {{technologies.length}} technologies.&lt;/h3&gt;</span></span></p>
<p class="western"><span style="font-family: Calibri, serif;"><span lang="en">&lt;/div&gt;</span></span></p>
<p>* In Angular .2 local variables are defined using a hash (#) prefix.</p>
<p>* In Angular 1, ng-model is used for two-way data binding, but in Angular 2 it is replaced with [(ngModel)].</p>
<p>* One of the major advantages of Angular is Dependency Injection. Angular 2 consists of DI but, there is a different way to inject dependencies. As everything is a class in Angular, so DI is achieved through a constructor.</p>
<p><strong>THE VERDICT </strong></p>
<p>Though the above two frameworks are similar, there are some essential differences in these two processes. Angular 2 is a really big step forward. And it certainly requires some efforts to migrate from Angular 1 to Angular 2. Both the tools have equal importance when compared with each other on the basis of functionality. The choice is always depends on the need and the requirements of the project.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/angular-1-vs-angular-2/">ANGULAR 1 Vs ANGULAR 2</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/angular-1-vs-angular-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO CONVERT ANGULAR JS1.X FILTER TO ANGULAR JS 2.0 PIPES?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-to-convert-angular-js1-x-filter-to-angular-js-2-0-pipes/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-to-convert-angular-js1-x-filter-to-angular-js-2-0-pipes/#comments</comments>
		<pubDate>Thu, 08 Sep 2016 05:26:53 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[angular js 2.0 pipe]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1610</guid>
		<description><![CDATA[<p>How to convert angular js1.x filter to angular js 2.0 pipes? Create pipe class import { Pipe, PipeTransform } from &#8216;@angular/core'; @Pipe({name: &#8216;filter1&#8242;}) export class ExponentialStrengthPipe implements PipeTransform { transform(value: number, exponent: string): number { return exponent; // do something with your vallue } } After that in your component add and include pipe import [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-convert-angular-js1-x-filter-to-angular-js-2-0-pipes/">HOW TO CONVERT ANGULAR JS1.X FILTER TO ANGULAR JS 2.0 PIPES?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How to convert angular js1.x filter to angular js 2.0 pipes?</h4>
<p>Create pipe class<br />
import { Pipe, PipeTransform } from &#8216;@angular/core';<br />
@Pipe({name: &#8216;filter1&#8242;})<br />
export class ExponentialStrengthPipe implements PipeTransform {<br />
transform(value: number, exponent: string): number {<br />
return exponent; // do something with your vallue<br />
}<br />
}<br />
After that in your component add and include pipe<br />
import { Component } from &#8216;@angular/core';<br />
import { ExponentialStrengthPipe } from &#8216;./exponential-strength.pipe';<br />
@Component({<br />
selector: &#8216;power-booster&#8217;,<br />
template: `</p>
<p>&lt;h2&gt;Power Booster&lt;/h2&gt;</p>
<p>&lt;p&gt;Super power boost: {{2 | filter1}}&lt;/p&gt;<br />
`,<br />
pipes: [ExponentialStrengthPipe]<br />
})<br />
export class PowerBoosterComponent { }</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-convert-angular-js1-x-filter-to-angular-js-2-0-pipes/">HOW TO CONVERT ANGULAR JS1.X FILTER TO ANGULAR JS 2.0 PIPES?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-to-convert-angular-js1-x-filter-to-angular-js-2-0-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
