<?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>Component - Bipon's Diary</title>
	<atom:link href="https://biponnotes.iglyphic.com/tag/component/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, 19 Feb 2020 16:23:23 +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>Creating Your First Template based Form</title>
		<link>https://biponnotes.iglyphic.com/creating-your-first-template-based-form/</link>
					<comments>https://biponnotes.iglyphic.com/creating-your-first-template-based-form/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Fri, 03 Jan 2020 04:58:37 +0000</pubDate>
				<category><![CDATA[Angular Form]]></category>
		<category><![CDATA[angular form]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[form]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=307</guid>

					<description><![CDATA[<p>Step 1: Create a component like login.component.html Step 2: login.component.ts</p>
<p>The post <a href="https://biponnotes.iglyphic.com/creating-your-first-template-based-form/">Creating Your First Template based Form</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Step 1: Create a component like login.component.html</p>



<pre class="wp-block-code"><code>&lt;h1>Login&lt;/h1>
&lt;hr>
&lt;div class="col-md-4">
  &lt;form #loginForm="ngForm" (ngSubmit)="login(loginForm.value)" autocomplete="off">
    &lt;div class="form-group" >
      &lt;label for="userName">User Name:&lt;/label>
      &lt;input (ngModel)="userName" name="userName" id="userName" type="text" class="form-control" placeholder="User Name..." />
    &lt;/div>
    &lt;div class="form-group" >
      &lt;label for="password">Password:&lt;/label>
      &lt;input (ngModel)="password" name="password" id="password" type="password" class="form-control"placeholder="Password..." />
    &lt;/div>
        
    &lt;button type="submit" class="btn btn-primary">Login&lt;/button>
    &lt;button type="button" class="btn btn-default">Cancel&lt;/button>
  &lt;/form>
&lt;/div>
&lt;!-- {{loginForm.value | json}} --></code></pre>



<p>Step 2: login.component.ts</p>



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

@Component({
    templateUrl: './login.component.html'
})

export class LoginComponent{

    userName
    password
    
    login(formValues){
        console.log(formValues)
    }

}</code></pre><p>The post <a href="https://biponnotes.iglyphic.com/creating-your-first-template-based-form/">Creating Your First Template based Form</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/creating-your-first-template-based-form/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">307</post-id>	</item>
		<item>
		<title>Angular Component Interaction – Output Decorator</title>
		<link>https://biponnotes.iglyphic.com/angular-component-interaction-output-decorator/</link>
					<comments>https://biponnotes.iglyphic.com/angular-component-interaction-output-decorator/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sun, 29 Dec 2019 18:19:03 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular Component]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[Component]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=271</guid>

					<description><![CDATA[<p>event-thumbnail.component.ts event-list.component.ts file app.module.ts file</p>
<p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-output-decorator/">Angular Component Interaction – Output Decorator</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>event-thumbnail.component.ts</p>



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

@Component({
    selector: 'event-thumbnail',
    template: `        
        &lt;div class="well thumbnail">
            &lt;h2>{{event?.name}}&lt;/h2>
            &lt;div>Date: {{event?.date}}&lt;/div>
            &lt;div [ngStyle]="getStartTimeStyle()" 
            [ngSwitch]="event?.time">
                Time: {{event?.time}}
                &lt;span *ngSwitchCase="'8:00 am'">(Early Start)&lt;/span>
                &lt;span *ngSwitchCase="'10:00 am'">(Late Start)&lt;/span>
                &lt;span *ngSwitchDefault>(Normal Start)&lt;/span>
            &lt;/div>
            &lt;div>price: \${{event?.price}}&lt;/div>
            &lt;div *ngIf="event?.location">
                &lt;span>Location: {{event?.location?.address}}&lt;/span>
                &lt;span>&nbsp;&lt;/span>
                &lt;span>{{event?.location?.city}}, {{event?.location?.country}}&lt;/span>
            &lt;/div>
            &lt;div *ngIf="event?.onlineUrl">
                Online Url: {{event?.onlineUrl}}
            &lt;/div>
            &lt;button class="btn btn-primary" (click)="handleClickMe()"> Click Me&lt;/button>
        &lt;/div>

    `,
    styles : [`
        .green{color: green !important}
        .bold{font-weight: bold;}
        .thumbnail{min-height: 210px;}
    `]
})

export class EventThumbnailComponent{
    @Input() event: any;
    @Output() eventClick = new EventEmitter;

    getStartTimeClass(){
        if(this.event &amp;&amp; this.event.time === '8:00 am')
            return ['green', 'bold']
        return []

        // if(this.event &amp;&amp; this.event.time === '8:00 am')
        //     return 'green bold'
        // return ''
        //const isEarlyStart = this.event &amp;&amp; this.event.time === '8:00 am'
        //return {green: isEarlyStart, bold: isEarlyStart}
    }
    getStartTimeStyle():any{
        if(this.event &amp;&amp; this.event.time === '8:00 am')
            return {color: '#003300', 'font-weight': 'bold'}
        return {}
    }
    handleClickMe(){
        // this.eventClick.emit('Foo');
        this.eventClick.emit(this.event.name);
        //console.log('Clicked');
    }
}</code></pre>



<figure class="wp-block-image"><img width="771" height="618" src="https://i0.wp.com/bipon.me/wp-content/uploads/2019/12/output-decorator.png?resize=771%2C618&#038;ssl=1" alt="" class="wp-image-273" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/12/output-decorator.png?w=771&amp;ssl=1 771w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/12/output-decorator.png?resize=300%2C240&amp;ssl=1 300w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/12/output-decorator.png?resize=768%2C616&amp;ssl=1 768w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/12/output-decorator.png?resize=750%2C601&amp;ssl=1 750w" sizes="(max-width: 771px) 100vw, 771px" data-recalc-dims="1" /></figure>



<p>event-list.component.ts file</p>



<pre class="wp-block-code"><code>import { EventService } from './shared/event.service';
import { Component, OnInit } from '@angular/core';
import { ToastrService } from '../common/toastr.service';

@Component({
    selector: "events-list",
    template: `
    &lt;div>
    &lt;h2>Upcoming Angular Evnets&lt;/h2>
        &lt;hr>
        &lt;div class="row">
            &lt;div class="col-md-5" *ngFor="let event of events">
                &lt;!-- &lt;event-thumbnail (click)="handleThumbnailClick(event.name)"  [event]="event">&lt;/event-thumbnail> -->
                &lt;event-thumbnail (eventClick)="handleEventClick($event)"  [event]="event">&lt;/event-thumbnail>
            &lt;/div>
        &lt;/div>
    &lt;/div>
    `
})


export class EventListComponent implements OnInit{

    events: any[];

    constructor(private eventService: EventService, private toastr: ToastrService){
        
    }

    ngOnInit(){
        this.events = this.eventService.getEvents();
    }
    handleThumbnailClick(eventName){
        this.toastr.success(eventName);
    }
    handleEventClick(data){
        console.log('Received data from child component: ', data);
    }

}</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 { EventsAppComponent } from './events-app.component';
import { EventListComponent } from './events/event-list.component';
import { EventThumbnailComponent } from './events/event-thumbnail.component';
import { NavBarComponent } from './nav/navbar-component';
import { EventService } from './events/shared/event.service';
import { ToastrService } from './common/toastr.service';

@NgModule({
  declarations: [
    EventsAppComponent,
    EventListComponent,
    EventThumbnailComponent,
    NavBarComponent
  ],
  imports: [
    BrowserModule
  ],
  providers: [EventService, ToastrService],
  bootstrap: [EventsAppComponent]
})
export class AppModule { }
</code></pre><p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-output-decorator/">Angular Component Interaction – Output Decorator</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-output-decorator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">271</post-id>	</item>
		<item>
		<title>Angular Component Interaction &#8211; Input Decorator</title>
		<link>https://biponnotes.iglyphic.com/angular-component-interaction-input-decorator/</link>
					<comments>https://biponnotes.iglyphic.com/angular-component-interaction-input-decorator/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Wed, 25 Dec 2019 19:16:14 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular Component]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[Component]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=234</guid>

					<description><![CDATA[<p>app.module.ts file app.component.html file app.component.ts file child.component.html file child.component.ts file</p>
<p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-input-decorator/">Angular Component Interaction – Input Decorator</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>app.module.ts file</p>



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

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

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



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



<pre class="wp-block-code"><code>&lt;h2>Parent Component&lt;/h2>
&lt;app-child [loggedIn]="userLoggedIn">&lt;/app-child></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 {
  userLoggedIn = true;
}</code></pre>



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



<pre class="wp-block-code"><code>&lt;h3>Child Component&lt;/h3>
&lt;p *ngIf="loginFlag">Welcome back&lt;/p>
&lt;p *ngIf="!loginFlag">Please be login&lt;/p></code></pre>



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



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

@Component({
  selector: 'app-child',
  templateUrl: './child.component.html',
  styleUrls: ['./child.component.css']
})
export class ChildComponent implements OnInit {

  @Input('loggedIn') loginFlag: boolean;

  constructor() { }

  ngOnInit() {
  }

}
</code></pre><p>The post <a href="https://biponnotes.iglyphic.com/angular-component-interaction-input-decorator/">Angular Component Interaction – Input Decorator</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-input-decorator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">234</post-id>	</item>
		<item>
		<title>Inter Component Interaction Way</title>
		<link>https://biponnotes.iglyphic.com/inter-component-interaction-way/</link>
					<comments>https://biponnotes.iglyphic.com/inter-component-interaction-way/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Wed, 25 Dec 2019 18:54:20 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[Angular Component]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[Component]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=231</guid>

					<description><![CDATA[<p>Input() Decorator Output() Decorator Getters and Setters ngOnChanges() Template Reference Variables ViewChild() Emitting events Services</p>
<p>The post <a href="https://biponnotes.iglyphic.com/inter-component-interaction-way/">Inter Component Interaction Way</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<ul><li>Input() Decorator</li><li>Output() Decorator </li><li>Getters and Setters</li><li>ngOnChanges()</li><li>Template Reference Variables</li><li>ViewChild()</li><li>Emitting events</li><li>Services</li></ul><p>The post <a href="https://biponnotes.iglyphic.com/inter-component-interaction-way/">Inter Component Interaction Way</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/inter-component-interaction-way/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">231</post-id>	</item>
		<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>
		<item>
		<title>অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে?</title>
		<link>https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/</link>
					<comments>https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Wed, 25 Sep 2019 11:43:13 +0000</pubDate>
				<category><![CDATA[অ্যাঙ্গুলার]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[angularcore]]></category>
		<category><![CDATA[Component]]></category>
		<guid isPermaLink="false">http://bipon.me/?p=89</guid>

					<description><![CDATA[<p>অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে? আমরা লেগো টুকরাগুলির মতো অ্যাংগুলার কম্পোনেন্টগুলির কথা ভাবতে পারি। আমরা একবারে একটি কম্পোনেন্ট তৈরি করি তবে সেগুলি আমাদের ওয়েবসাইটের বিভিন্ন অংশে একাধিকবার ব্যবহার করতে পারি। একটি অ্যাংগুলার&#160; অ্যাপ্লিকেশন একটি গাছের কাঠামো যা আমরা তৈরি সেই সমস্ত কম্পোনেন্টগুলিকে নিয়ে গঠিত, যেমন আমরা কীভাবে ছোট লেগো টুকরো থেকে লেগো&#8230;<a href="https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/" class="more-link">Continue reading <span class="screen-reader-text">অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে?</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/">অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে?</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে?</strong><br></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="682" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh-1024x682.jpg?resize=1024%2C682" alt="" class="wp-image-91" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?resize=1024%2C682&amp;ssl=1 1024w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?resize=300%2C200&amp;ssl=1 300w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?resize=768%2C512&amp;ssl=1 768w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?resize=750%2C500&amp;ssl=1 750w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?w=2080&amp;ssl=1 2080w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/0_9czJWecyDtbxjwfh.jpg?w=3120&amp;ssl=1 3120w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<p>আমরা লেগো টুকরাগুলির মতো অ্যাংগুলার কম্পোনেন্টগুলির কথা ভাবতে পারি। আমরা একবারে একটি কম্পোনেন্ট তৈরি করি তবে সেগুলি আমাদের ওয়েবসাইটের বিভিন্ন অংশে একাধিকবার ব্যবহার করতে পারি।<br></p>



<p>একটি অ্যাংগুলার&nbsp; অ্যাপ্লিকেশন একটি গাছের কাঠামো যা আমরা তৈরি সেই সমস্ত কম্পোনেন্টগুলিকে নিয়ে গঠিত, যেমন আমরা কীভাবে ছোট লেগো টুকরো থেকে লেগো স্ট্রাকচার তৈরি করি।<br></p>



<p>কম্পোনেন্ট গুলিএকটি অ্যাংগুলার অ্যাপ্লিকেশনটির সর্বাধিক প্রাথমিক ইউআই(UI) বিল্ডিং ব্লক। একটি অ্যাংগুলার অ্যাপ্লিকেশনটিতে অ্যাংগুলার কম্পোনেন্টগুলির একটি গাছ থাকে — <strong>অ্যাংগুলার&nbsp; অফিসিয়াল ডক্স</strong><br></p>



<figure class="wp-block-image"><img loading="lazy" width="573" height="385" src="https://i0.wp.com/bipon.me/wp-content/uploads/2019/09/1_5jyMW3yzXfoR2fb06CXu-Q.png?resize=573%2C385" alt="" class="wp-image-92" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_5jyMW3yzXfoR2fb06CXu-Q.png?w=573&amp;ssl=1 573w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_5jyMW3yzXfoR2fb06CXu-Q.png?resize=300%2C202&amp;ssl=1 300w" sizes="(max-width: 573px) 100vw, 573px" data-recalc-dims="1" /></figure>



<p>সুতরাং এটি মূলত একটি অ্যাংগুলার কম্পোনেন্ট যা, কিন্তু এটি সমস্ত নয়। এই আর্টিকেলে, আপনি নিম্নলিখিত প্রশ্নের উত্তর পাবেন:<br></p>



<ul><li>একটি কম্পোনেন্টের কাজগুলি কী কী?</li><li>একটি কম্পোনেন্টের ভিতরে কি?</li><li>কোন কম্পোনেন্ট কীভাবে কাজ করে?</li><li>এনজিওনিট (ngOnInit?) কী?</li></ul>



<p><strong>একটি কম্পোনেন্টের কাজগুলি</strong><br></p>



<p>কোন কম্পোনেন্টের প্রধান কাজগুলি হ&#8217;ল:<br></p>



<ul><li>ইন্টারপোলেশন (Interpolation), দিকনির্দেশক(Directives) এবং পাইপের(Pipes) সহায়তায় একটি নির্দিষ্ট পেজ / বিভাগ এবং এর ডেটা প্রদর্শন করা হচ্ছে</li><li>মডেল এবং ভিউগুলির মধ্যে বাইন্ডিং ডেটা</li></ul>



<p><strong>একটি কম্পোনেন্টের ভিতরে কি?</strong><br></p>



<p>একটি কম্পোনেন্টে<strong> </strong>রয়েছে (বেশিরভাগ) 3 টি অংশ:</p>



<ul><li>টেমপ্লেট ফাইল- এইচটিএমএল ভিউ</li><li>টাইপস্ক্রিপ্ট ফাইল &#8211; মডেল</li><li>স্টাইল ফাইল &#8211; সিএসএস</li></ul>



<figure class="wp-block-image"><img loading="lazy" width="630" height="386" src="https://i0.wp.com/bipon.me/wp-content/uploads/2019/09/1_DcbCqgIylij6c6mnwdvr9g.png?resize=630%2C386" alt="" class="wp-image-93" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_DcbCqgIylij6c6mnwdvr9g.png?w=630&amp;ssl=1 630w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_DcbCqgIylij6c6mnwdvr9g.png?resize=300%2C184&amp;ssl=1 300w" sizes="(max-width: 630px) 100vw, 630px" data-recalc-dims="1" /></figure>



<p>ফোল্ডার (অ্যাপ) হ&#8217;ল আমাদের কম্পোনেন্ট<strong> </strong>ফোল্ডার, এতে এইচটিএমএল, সিএসএস এবং টিএস ফাইল রয়েছে।&nbsp; spec.ts পরীক্ষার জন্য এবং আপনি আপাতত module.ts উপেক্ষা করতে পারবেন।<br></p>



<p>সুতরাং প্রতিটি কম্পোনেন্টর<strong> </strong>নিজস্ব HTML কাঠামো, স্টাইল (সিএসএস) এবং ফাঙ্কশনালিটি (TS) আছে। কিন্তু কোন কম্পোনেন্ট<strong> </strong>আসলে কীভাবে কাজ করে?<br></p>



<p>একটি অ্যাংগুলার অ্যাপ তৈরি করার সময় আমাদের ফোল্ডারগুলির সাবধানতার সাথে নাম দেওয়া উচিত, অন্যথায়, আমরা একটি বড় প্রজেক্টর ভিতরে হারিয়ে যাব।</p>



<p><strong>কোন কম্পোনেন্ট কীভাবে কাজ করে?</strong><br></p>



<p>ঠিক আছে, উত্তরটি app.componal.ts এর ভিতরে রয়েছে:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="462" src="https://i0.wp.com/bipon.me/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA-1024x462.png?resize=1024%2C462" alt="" class="wp-image-94" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA.png?resize=1024%2C462&amp;ssl=1 1024w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA.png?resize=300%2C135&amp;ssl=1 300w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA.png?resize=768%2C346&amp;ssl=1 768w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA.png?resize=750%2C338&amp;ssl=1 750w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_nqgu6lBwQ4Ae3ePpRJryQA.png?w=1340&amp;ssl=1 1340w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<p>আমাদের এখানে একটি সাধারণ টাইপস্ক্রিপ্ট ক্লাস রয়েছে। তবে এটি একটি কম্পোনেন্ট<strong> </strong>হিসাবে ব্যবহার করার জন্য:<br></p>



<p>প্রথমত, আমরা @angular/core লাইব্রেরি থেকে কম্পোনেন্টটি ইম্পোর্ট করি, যাতে আমরা একটি অ্যাংগুলার&nbsp; কম্পোনেন্ট তৈরি করতে পারি<br></p>



<p>@Component decorator টিএস ক্লাসটিকে একটি কম্পোনেন্ট হিসাবে চিহ্নিত করে এবং আমাদের নীচের মেটাডেটা যুক্ত করতে দেয়<br></p>



<p>selector হ&#8217;ল এইচটিএমএল ট্যাগ হিসাবে প্রজেক্টর অন্যান্য এইচটিএমএল ফাইলের অভ্যন্তরটিকে কল করার জন্য: &lt;app-root&gt; &lt;/app-root&gt;<br></p>



<p><strong>TemplateUrl </strong>&nbsp;যেখানে কম্পোনেন্টটির এইচটিএমএল ভিউ রয়েছে।<br></p>



<p><strong>style URLs</strong> (1 টির বেশি হতে পারে) যেখানে কম্পোনেন্টটির স্টাইল সিএসএস থাকে।<br></p>



<p>অবশেষে, আমরা ক্লাসটি (কম্পোনেন্ট) এক্সপোর্ট করি যাতে আমরা এটিকে app.module অ্যাপ্লিকেশনটির মধ্যে কল করতে পারি অথবা প্রোজেক্টর অন্য কোন জাইগাতে ব্যবহার করতে পারি ।&nbsp;&nbsp;<br></p>



<p>সুতরাং এই পদক্ষেপগুলি একটি অ্যাংগুলার&nbsp; কম্পোনেন্ট তৈরি করে। এখন দেখা যাক কীভাবে এটি ব্যবহার করবেন…<br></p>



<p>উপাদান তৈরি করার পরে, আমাদের অবশ্যই এটি declarations এর অধীনে App Module মধ্যে সংরক্ষণ করতে হবে:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="664" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ-1024x664.png?resize=1024%2C664" alt="" class="wp-image-95" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ.png?resize=1024%2C664&amp;ssl=1 1024w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ.png?resize=300%2C194&amp;ssl=1 300w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ.png?resize=768%2C498&amp;ssl=1 768w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ.png?resize=750%2C486&amp;ssl=1 750w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_6iILXwylZfEwGs_th1_McQ.png?w=1336&amp;ssl=1 1336w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<p>অবশেষে, আমরা কম্পোনেন্টটির <strong>selector name</strong>&nbsp; কল করতে পারি এবং তারপরে আমাদের ওয়েবপেজে এটি দেখতে সক্ষম হওয়া উচিত:</p>



<figure class="wp-block-image"><img loading="lazy" width="738" height="166" src="https://i0.wp.com/bipon.me/wp-content/uploads/2019/09/1_tkvIZOpK8kdqfPIPAv0Ghw.png?resize=738%2C166" alt="" class="wp-image-96" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_tkvIZOpK8kdqfPIPAv0Ghw.png?w=738&amp;ssl=1 738w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_tkvIZOpK8kdqfPIPAv0Ghw.png?resize=300%2C67&amp;ssl=1 300w" sizes="(max-width: 738px) 100vw, 738px" data-recalc-dims="1" /></figure>



<p>যেহেতু অ্যাঙ্গুলার একটি মডিউলার ফ্রেমওয়ার্ক, তাই প্রতিটি কম্পোনেন্ট, সার্ভিস এবং অন্যান্য অ্যাঙ্গুলারের&nbsp; বৈশিষ্ট্যগুলি অ্যাপ মডিউল (App Module) (বা একটি কাস্টম মডিউল) এর মধ্যে সংরক্ষণ করতে হবে, তাই আমরা এগুলি প্রজেক্টর যে কোনও জায়গায় ব্যবহার করতে পারি।<br></p>



<p><strong>একটু কম্পোনেন্ট জন্য এত প্রচেষ্টা?</strong><br></p>



<p>চিন্তা করবেন না, এই সমস্ত পদক্ষেপগুলি অ্যাংগুলার&nbsp; সিএলআই (CLI) দ্বারা স্বয়ংক্রিয়ভাবে করা যেতে পারে, তবে প্রয়োজন হলে আপনি নিজেই এগুলি সম্পাদনা করতে পারেন।</p>



<p><strong>এনজিওনিট কী?</strong><br></p>



<p>ঠিক আছে, এখন আপনি কীভাবে একটি কম্পোনেন্ট&nbsp; তৈরি করবেন তা শিখলেন। আপনি যখন একটি নতুন কম্পোনেন্ট&nbsp; তৈরি করবেন, আপনি বুঝতে পারবেন যে এনজিওএনইনিট () নামের একটি পদ্ধতি কন্সট্রাক্টরের&nbsp; নীচে উপস্থিত হবে:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="599" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA-1024x599.png?resize=1024%2C599" alt="" class="wp-image-97" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA.png?resize=1024%2C599&amp;ssl=1 1024w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA.png?resize=300%2C175&amp;ssl=1 300w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA.png?resize=768%2C449&amp;ssl=1 768w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA.png?resize=750%2C439&amp;ssl=1 750w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_u1FEJwtu0dfQVGF8e9pUzA.png?w=1330&amp;ssl=1 1330w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<p>প্রতিটি কম্পোনেন্টর একটি লাইফ সাইকেল আছে। ngOnInit() মেথডটি অ্যাঙ্গুলার কম্পোনেন্ট ইমমেডিয়েটলি শেষ করার সাথে সাথে ডাকা হয়। অন্য কথায়, অ্যাঙ্গুলার&nbsp; আমাদের বলছে যে &#8220;কম্পোনেন্ট  প্রস্তুত&#8221;।<br></p>



<p>আমরা ngOnInit () মেথডটির অভ্যন্তরে কী করতে পারি তা হ&#8217;ল কিছু ক্রিয়াকলাপ যেমন ডেটা আনার মতো, বা অন পেজ লোডে আমরা তত্ক্ষণাত দেখতে চাই। কনস্ট্রাক্টরের ভিতরে এই ধরণের ক্রিয়াকলাপ করার পরামর্শ দেওয়া হয় না, সুতরাং এর পরিবর্তে আমাদের এনজিওএনট ( ngOnInit()) রয়েছে ।&nbsp;<br></p>



<p><strong>অ্যাঙ্গুলারের ক্ষেত্রে, কনস্ট্রাক্টর কেবল ডিপেন্ডেন্সি ইনজেকশনের জন্য দায়ী হওয়া উচিত।</strong></p>



<p>অ্যাঙ্গুলার&nbsp; অফিসিয়াল নথি অনুসারে, আমাদের জন্য ngOnInit() মেথডটি প্রয়োজন:<br></p>



<ol><li><strong>To perform complex initializations shortly after construction.</strong></li><li><strong>To set up the component after Angular sets the input properties.</strong></li></ol>



<p>কোনও ngOnInit()&nbsp; কোনও কম্পোনেন্টটির প্রাথমিক ডেটা আনার জন্য একটি ভাল জায়গা। &#8211; <strong>অ্যাঙ্গুলার&nbsp; অফিসিয়াল ডক্স</strong></p>



<p>আরও তথ্যের জন্য আপনি <a href="https://angular.io/guide/lifecycle-hooks#oninit">এখানে</a> এবং <a href="https://angular.io/api/core/OnInit">এখানেও</a> দেখতে করতে পারেন।<br></p>



<p>অ্যাঙ্গুলার শেখার একটি বড় পদক্ষেপ হ&#8217;ল কম্পোনেন্ট কীভাবে তৈরি করতে হয় এবং দক্ষতার সাথে সেগুলি ব্যবহার করতে হয় তা জেনে রাখা।&nbsp; আপনার যদি কোনও প্রশ্ন থাকে তবে মন্তব্য বিভাগে জিজ্ঞাসা করতে দ্বিধা করবেন না।<br></p>



<p>আপনার সময় এবং সহায়তার জন্য আপনাকে ধন্যবাদ!<br></p><p>The post <a href="https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/">অ্যাঙ্গুলার 7 কম্পোনেন্ট তৈরি ও ব্যবহার করবেন কীভাবে?</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/how-to-create-and-use-angular-component/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">89</post-id>	</item>
		<item>
		<title>কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআই ব্যবহার করে অ্যাংগুলার নতুন প্রোজেক্ট করা</title>
		<link>https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/</link>
					<comments>https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Tue, 24 Sep 2019 08:05:43 +0000</pubDate>
				<category><![CDATA[অ্যাঙ্গুলার]]></category>
		<category><![CDATA[angular]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[typescript]]></category>
		<guid isPermaLink="false">http://bipon.me/?p=78</guid>

					<description><![CDATA[<p>কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআইয়ের সাথে অ্যাংগুলার ইনস্টল করা অ্যাংগুলার&#160; আধুনিক ওয়েব অ্যাপ্লিকেশন তৈরির জন্য বিশ্বের অন্যতম জনপ্রিয় জাভাস্ক্রিপ্ট ফ্রেমওয়ার্ক। অ্যাংগুলার&#160; গুগল তৈরি করেছে এবং ডেভেলপেড করেছে এবং এর পিছনে একটি বিশাল সম্প্রদায় সমর্থন রয়েছে। আপনি এখান থেকে অ্যাংগুলার অফিসিয়াল ওয়েবসাইট দেখতে পারেন। অ্যাংগুলার &#160;2+ দিয়ে শুরু করে একটি অ্যাংগুলার প্রজেক্টে বিভিন্ন কনফিগারেশন ফাইলের প্রয়োজন। একে&#8230;<a href="https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/" class="more-link">Continue reading <span class="screen-reader-text">কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআই ব্যবহার করে অ্যাংগুলার নতুন প্রোজেক্ট করা</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/">কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআই ব্যবহার করে অ্যাংগুলার নতুন প্রোজেক্ট করা</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআইয়ের সাথে অ্যাংগুলার ইনস্টল করা</strong><br></p>



<p>অ্যাংগুলার&nbsp; আধুনিক ওয়েব অ্যাপ্লিকেশন তৈরির জন্য বিশ্বের অন্যতম জনপ্রিয় জাভাস্ক্রিপ্ট ফ্রেমওয়ার্ক। অ্যাংগুলার&nbsp; গুগল তৈরি করেছে এবং ডেভেলপেড করেছে এবং এর পিছনে একটি বিশাল সম্প্রদায় সমর্থন রয়েছে। আপনি এখান থেকে অ্যাংগুলার অফিসিয়াল ওয়েবসাইট <a href="https://angular.io/">দেখতে</a> পারেন।<br></p>



<p><strong>অ্যাংগুলার </strong>&nbsp;2+ দিয়ে শুরু করে একটি অ্যাংগুলার প্রজেক্টে বিভিন্ন কনফিগারেশন ফাইলের প্রয়োজন। একে একে ম্যানুয়ালি ইনস্টল করা সময়ের অপচয় এবং এটিও কঠিন।<br></p>



<p>অতএব, অ্যাংগুলার&nbsp; সমস্ত কনফিগারেশনের সাথে ডিল করার জন্য একটি সমাধান নিয়ে আসে: অ্যাংগুলার সিএলআই। আমরা অ্যাংগুলার সিএলআই ব্যবহার করে কয়েক মিনিটের মধ্যে একটি অ্যাংগুলার প্রজেক্ট ডেভেলপিং শুরু করতে পারি।<br></p>



<p>এই পোস্টে, আমি অ্যাংগুলার সিএলআই(CLI) ব্যবহার করে আপনার কম্পিউটারে অ্যাঙ্গুলার ইনস্টল করার পদ্ধতিটি ব্যাখ্যা করব।<br></p>



<p>গুরুত্বপূর্ণ: অ্যাংগুলার অ্যাংগুলার জেএস নয়।<br></p>



<p>অ্যাংগুলার জেএস → অ্যাংগুলার সংস্করণ 1.x</p>



<p>অ্যাংগুলার → অ্যাংগুলার সংস্করণ 2+<br></p>



<p><strong>অ্যাংগুলার সিএলআই কি?</strong><br></p>



<p>সিএলআই(CLI) মানে কমান্ড লাইন ইন্টারফেস। অ্যাংগুলার সিএলআই(CLI) ম্যানুয়ালি না করে অ্যাংগুলার প্রজেক্ট গুলিতে স্বয়ংক্রিয় ক্রিয়াকলাপের জন্য ব্যবহৃত হচ্ছে। সিএলআই শুরু থেকে শেষ পর্যন্ত একটি অ্যাংগুলার প্রজেক্টে আমাদের ডেভেলপারদের সমর্থন করে।<br></p>



<p>উদাহরণস্বরূপ, অ্যাংগুলার সিএলআই(CLI) এর জন্য ব্যবহার করা যেতে পারে:<br></p>



<ul><li>কনফিগারেশন, এনভায়রনমেন্ট সেটআপ</li><li>বিল্ডিং কম্পোনেন্টস, সার্ভিসেস, রাউটিং সিস্টেম</li><li>প্রজেক্টটি শুরু করা, পরীক্ষা করা এবং ডেপ্লয়ইং করা হচ্ছে</li><li>তৃতীয় পক্ষের লাইব্রেরি যেমন বুটস্ট্র্যাপ, সাস ইত্যাদি ইনস্টল করা (ওয়েবপ্যাক সহ)</li></ul>



<p>এবং আরো অনেক কিছু<br></p>



<p>অ্যাংগুলার সিএলআই(CLI) ডেভেলপারদের সময় সেভ করে। আপনি নীচে এর অফিসিয়াল ওয়েবসাইট চেক করতে পারেন:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="514" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw-1024x514.png?resize=1024%2C514" alt="" class="wp-image-81" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw.png?resize=1024%2C514&amp;ssl=1 1024w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw.png?resize=300%2C151&amp;ssl=1 300w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw.png?resize=768%2C386&amp;ssl=1 768w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw.png?resize=750%2C377&amp;ssl=1 750w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_52RvQwpvV6lwX2sy-ytRrw.png?w=1889&amp;ssl=1 1889w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
https://cli.angular.io/
</div></figure>



<p></p>



<p><strong>সিএলআই দিয়ে অ্যাঙ্গুলার কীভাবে ইনস্টল করবেন?</strong></p>



<p>আপনি যদি উপরের <a href="https://cli.angular.io/">অফিসিয়াল ওয়েবসাইটটিতে</a> যান তবে দেখতে পাবেন যে কয়েকটি কমান্ড লিখিত আছে। এটি একটি অ্যাংগুলার প্রজেক্ট ইনস্টল করার 4 টি প্রধান পদক্ষেপ:<br></p>



<p><strong>1. এনপিএম ইনস্টল করুন</strong><br></p>



<p>অ্যাংগুলার এর জন্য আপনার সিস্টেমে নোড.জেএস প্রয়োজন (সংস্করণ 8.x বা 10.x)। আপনার যদি ইতিমধ্যে এটি থাকে তবে আপনি এই অংশটি এড়িয়ে যেতে পারেন।<br></p>



<p>নোডের নোড প্যাকেজ ম্যানেজার (এনপিএম) রয়েছে, যা আমাদের অ্যাংগুলার সিএলআই এবং অন্যান্য প্রোগ্রাম (প্যাকেজ) ইনস্টল করার প্রয়োজন। আপনি এখান থেকে এনপিএম ডাউনলোড করতে পারেন।<br></p>



<p>ইনস্টলেশন সমাপ্ত হওয়ার পরে, আপনার টার্মিনাল বা উইন্ডোজ কমান্ড প্রম্পটে যান এবং কোন সংস্করণ ইনস্টল করা আছে তা পরীক্ষা করতে node -v টাইপ করুন:<br></p>



<figure class="wp-block-image"><img loading="lazy" width="892" height="230" src="https://i2.wp.com/bipon.me/wp-content/uploads/2019/09/1_aNZXR9maEGlLK2lw42MR7g.png?resize=892%2C230" alt="" class="wp-image-80" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_aNZXR9maEGlLK2lw42MR7g.png?w=892&amp;ssl=1 892w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_aNZXR9maEGlLK2lw42MR7g.png?resize=300%2C77&amp;ssl=1 300w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_aNZXR9maEGlLK2lw42MR7g.png?resize=768%2C198&amp;ssl=1 768w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_aNZXR9maEGlLK2lw42MR7g.png?resize=750%2C193&amp;ssl=1 750w" sizes="(max-width: 892px) 100vw, 892px" data-recalc-dims="1" /></figure>



<p><strong>2. অ্যাংগুলার সিএলআই ইনস্টল করুন</strong><br></p>



<p>আপনি এনপিএম ইনস্টল করার পরে, আপনি দ্বিতীয় পদক্ষেপ হিসাবে অ্যাংগুলার সিএলআই ইনস্টল করতে পারেন।<br></p>



<p>npm install -g @angular/cli<br></p>



<p>দ্রষ্টব্য: যদি আপনার ম্যাকটি ইনস্টলেশনটি সীমাবদ্ধ করে, আপনি sudo su কমান্ডের সাহায্যে সুপার ব্যবহারকারী হতে পারেন এবং আবার চেষ্টা করুন।<br></p>



<p>g এর অর্থ গ্লোবাল ইনস্টলেশন। আমরা এটি অন্তর্ভুক্ত করি যাতে আমরা পরে যেকোনও অ্যাংগুলার&nbsp; প্রজেক্টে সিএলআই ব্যবহার করতে পারি। ইনস্টলেশন সমাপ্ত হওয়ার পরে, ইনস্টলেশনটি সফল কিনা তা যাচাই করতে ng v টাইপ করুন।</p>



<figure class="wp-block-image"><img loading="lazy" width="888" height="652" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/1_cI7x-5FmvppWfyZanypVmw.png?resize=888%2C652" alt="" class="wp-image-82" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_cI7x-5FmvppWfyZanypVmw.png?w=888&amp;ssl=1 888w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_cI7x-5FmvppWfyZanypVmw.png?resize=300%2C220&amp;ssl=1 300w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_cI7x-5FmvppWfyZanypVmw.png?resize=768%2C564&amp;ssl=1 768w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_cI7x-5FmvppWfyZanypVmw.png?resize=750%2C551&amp;ssl=1 750w" sizes="(max-width: 888px) 100vw, 888px" data-recalc-dims="1" /></figure>



<p><strong>ng </strong>মানে অ্যাংগুলার এবং -v সংস্করণ।<br></p>



<p><strong>৩. সিএলআই দিয়ে একটি কৌণিক অ্যাপ তৈরি করুন</strong><br></p>



<p>আপনি এখন সিএলআইয়ের সাথে একটি অ্যাংগুলার অ্যাপ ইনস্টল করতে পারেন। আপনার টার্মিনাল থেকে আবার, আপনার সোর্স কোডটি কোথায় ইনস্টল করতে হবে তার জন্য প্রথমে একটি ফাইলের পথ পছন্দ করুন। আমি <strong>cd Desktop</strong> কমান্ড সহ আমার ডেস্কটপ হিসাবে একটি অবস্থান নির্বাচন করব, তারপরে আপনার প্রথম অ্যাংগুলার &nbsp;প্রজেক্টটি ইনস্টল করতে নিম্নলিখিত কমান্ডটি টাইপ করুন:<br></p>



<p>ng new my-first-app<br></p>



<p>এই কমান্ডটি প্রয়োজনীয় সমস্ত কনফিগারেশন সহ অ্যাঙ্গুলার অ্যাপটি ইনস্টল করবে। আপনি অবশ্যই অন্য একটি নাম পছন্দ করতে পারেন।<br></p>



<figure class="wp-block-image"><img loading="lazy" width="982" height="418" src="https://i1.wp.com/bipon.me/wp-content/uploads/2019/09/1_rDGraDubKCpqiHdA41PtBA.png?resize=982%2C418" alt="" class="wp-image-83" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_rDGraDubKCpqiHdA41PtBA.png?w=982&amp;ssl=1 982w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_rDGraDubKCpqiHdA41PtBA.png?resize=300%2C128&amp;ssl=1 300w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_rDGraDubKCpqiHdA41PtBA.png?resize=768%2C327&amp;ssl=1 768w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_rDGraDubKCpqiHdA41PtBA.png?resize=750%2C319&amp;ssl=1 750w" sizes="(max-width: 982px) 100vw, 982px" data-recalc-dims="1" /></figure>



<p><strong>৪. অ্যাপটি চালান</strong><br></p>



<p>অ্যাংগুলার লাইভ সার্ভার সমর্থন করে, তাই আপনি পেজ রিফ্রেশিং না করে স্বয়ংক্রিয়ভাবে আপনার স্থানীয় ব্রাউজারে পরিবর্তনগুলি দেখতে পাবেন। আপনার অ্যাংগুলার&nbsp; অ্যাপটি সফলভাবে শুরু হওয়ার পরে, আপনার অ্যাপের প্রজেক্ট ফোল্ডারে যান &#8211; <strong>cd name-of-your-app</strong>।<br></p>



<p>যদি এখন পর্যন্ত সবকিছু ঠিকঠাক হয় তবে আপনি নিম্নলিখিত কমান্ড দিয়ে অ্যাংগুলার অ্যাপটি চালাতে পারেন:<br></p>



<p>ng serve &#8211;open</p>



<p>এই কম্যান্ডটি আপনার অ্যাংগুলার অ্যাপ্লিকেশনটি <strong>serve (start)</strong> এবং <strong>open </strong>কমান্ডটি এটি আপনার ওয়েব ব্রাউজারে স্বয়ংক্রিয়ভাবে রান হবে :</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="412" src="https://i2.wp.com/bipon.me/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw-1024x412.png?resize=1024%2C412" alt="" class="wp-image-84" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw.png?resize=1024%2C412&amp;ssl=1 1024w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw.png?resize=300%2C121&amp;ssl=1 300w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw.png?resize=768%2C309&amp;ssl=1 768w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw.png?resize=750%2C302&amp;ssl=1 750w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2019/09/1_ZgGjoV5-ZZAVAx18qC4TNw.png?w=1142&amp;ssl=1 1142w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure>



<p>আপনি এই বার্তাটি দেখার পরে, একটি ব্রাউজারে পেজ খুলবে এবং অভিনন্দন! আপনার প্রথম অ্যাঙ্গুলার অ্যাপটি আপনার লোকালহোস্টে চলমান আছে 🙂<br></p>



<p>সুতরাং একবার আপনি আপনার মেশিনে নোড.জেএস (এনপিএম) এবং অ্যাঙ্গুলার সিএলআই ইনস্টল করার পরে, একটি অ্যাঙ্গুলার প্রজেক্ট ইনস্টল ও পরিচালনা করতে কয়েক মিনিট সময় লাগে। আমি আশা করি আপনি এই আর্টিকেল দরকারী বলে মনে করি।<br></p>



<p>আপনার সময় এবং সহায়তার জন্য আপনাকে ধন্যবাদ !<br></p><p>The post <a href="https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/">কয়েক মিনিটের মধ্যে অ্যাংগুলার-সিএলআই ব্যবহার করে অ্যাংগুলার নতুন প্রোজেক্ট করা</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/use-angular-cli-within-few-minutes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">78</post-id>	</item>
	</channel>
</rss>
