<?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/"
	
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>

<channel>
	<title>interaction - Bipon's Diary</title>
	<atom:link href="https://biponnotes.iglyphic.com/tag/interactiion/feed/" rel="self" type="application/rss+xml" />
	<link>https://biponnotes.iglyphic.com</link>
	<description>Do good for others. It will come back in unexpected ways.</description>
	<lastBuildDate>Wed, 25 Dec 2019 17:48:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.10</generator>
<site xmlns="com-wordpress:feed-additions:1">168324471</site>	<item>
		<title>Angular Component Interaction &#8211; Binding</title>
		<link>https://biponnotes.iglyphic.com/angular-component-interaction-binding/</link>
					<comments>https://biponnotes.iglyphic.com/angular-component-interaction-binding/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Wed, 25 Dec 2019 17:38:11 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular Component]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[interaction]]></category>
		<category><![CDATA[Two Way Binding]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=216</guid>

					<description><![CDATA[<p>Binding is basic form of interaction between the component class and it&#8217;s corresponding template Step 1: for new project creation Step 2: For project running follow this command app.module.ts file app.component.ts file app.component.html file</p>
<p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-binding/">Angular Component Interaction – Binding</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>Binding</strong> is basic form of interaction between the component class and it&#8217;s corresponding template </p>



<p>Step 1: for new project creation</p>



<pre class="wp-block-code"><code>ng new template-demo</code></pre>



<p>Step 2: For project running follow this command</p>



<pre class="wp-block-code"><code>ng serve</code></pre>



<p>app.module.ts file</p>



<pre class="wp-block-code"><code>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }</code></pre>



<p>app.component.ts file</p>



<pre class="wp-block-code"><code>import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  // for interpolation
  pageTitle = 'Angular Component Interaction';
  // for property binding
  imgUrl = 'https://picsum.photos/200';
  count = 0;
  // for two way binding
  name: string;

  // Event binding
  incrementCount(){
    this.count +=1;
  }
}</code></pre>



<p>app.component.html file</p>



<pre class="wp-block-code"><code>&lt;h2>{{pageTitle}}&lt;/h2>
&lt;div>
  &lt;img [src]="imgUrl" alt="Image">
&lt;/div>

&lt;div>
  &lt;button (click)="incrementCount()">Click&lt;/button>
  &lt;p>Clicked {{count}} times.&lt;/p>
&lt;/div>

&lt;div>
  &lt;input type="text"  [(ngModel)]="name"/>
  &lt;p>Welcome {{name}}&lt;/p>
&lt;/div></code></pre><p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-binding/">Angular Component Interaction – Binding</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/angular-component-interaction-binding/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">216</post-id>	</item>
	</channel>
</rss>
