Open in app

Sign In

Write

Sign In

ACHARYA A K

82 Followers

Home

About

Jul 22

Why we need Host, Inject, Optional, Self, SkipSelf?

import { Component, OnInit, Host, Inject, Optional, Self, SkipSelf } from ‘@angular/core’; coming soon

Angular

1 min read

Why we need Host, Inject, Optional, Self, SkipSelf?
Why we need Host, Inject, Optional, Self, SkipSelf?
Angular

1 min read


Jul 2

Class 11 Computer science question for python with code solution

1. Write a Program to enter length and breadth and calculate area of rectangle width = input("Enter the width = ") length = input("Enter the length = ") area = float(width)*float(length) print("Area is = {0}".format(area)) 2. Write a Program to enter radius of circle and calculate area of circle import math radius = input("Enter the Radius = ") area = float(radius)*float(radius)*math.pi print("Area is {0}".format(area))

Python

1 min read

Class 11 Computer science question for python with code solution
Class 11 Computer science question for python with code solution
Python

1 min read


Jun 28

How to initialize template driven form?

Import Form module In Component create the variables in ts /class file set input with ngModel import { Component } from '@angular/core'; @Component({ selector: 'app-my-component', styleUrls: ['./my-component.component.css'], template: ` Name: <input type="text" [(ngModel)]="myData.name"> Age: <input type="number" [(ngModel)]="myData.age"> ` }) export class MyComponent { myData = { name: '', age: ''} }

Angular

1 min read

How to initialize template driven form?
How to initialize template driven form?
Angular

1 min read


Jun 26

How to initialize reactive form? angular basic

Import Reactive Form module In Component create the form in ts class file set input with formControl import { ReactiveFormsModule } from '@angular/forms'; @NgModule({ imports: [ // other imports ... ReactiveFormsModule ], }) export class AppModule { } // Main module import { Component } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; @Component({ selector: 'app-my-component', templateUrl: './my-component.component.html', styleUrls: ['./my-component.component.css'] }) export class MyComponent { detailsForm = new FormGroup({ name: new FormControl(''), age: new FormControl(''), }); }

Angular

1 min read

How to initialize reactive form? angular basic
How to initialize reactive form? angular basic
Angular

1 min read


Jun 22

What is formControl? angular basic interview question?

formControl is instance for a form element class(object). used for get and set value and validation. have methods like — setValue, patchValue, getRawValue, setValidators, setAsyncValidators, removeValidators , clearValidators, markDirty, markPristine, updateValueAndValidity, setError, getError, setError, hasError, getError etc,….

Angular

1 min read

Angular

1 min read


Jun 21

What is ngModel ? Angular basic level answer

ngModel- form Directive of template driven form (two way data binding not technically but for understading,) — ngModel is directive manage a form input or control <input type="text" [(ngModel)]="favoriteColor" in ts file create a variable for binding async value “ favoriteColor”

Angular

1 min read

Angular

1 min read


Jun 20

Component was not loaded due to order of path in routing or Why component was not loaded but another component is loaded with : id in routes? angular advance level question

here is routing Routes = [{ path: 'owner', component: OwnersLeadComponent, children:[ { path: '', component: OwnerStartComponent }, { path: ':id', component: OwnerDetailsComponent }, { path: 'new', component: OwnerUpdateComponent }, { path: ':id/new', component: OwnerUpdateComponent }, ] }]; in address bar

Angular

1 min read

Component was not loaded due to order of path in routing or Why component was not loaded but…
Component was not loaded due to order of path in routing or Why component was not loaded but…
Angular

1 min read


Jun 20

What are the types of forms Basic angular interview question?

Reactive form Template driven form

Angular

1 min read

Angular

1 min read


Jun 19

Basic angular interview question Which module do we need to include for using forms in app and where?

We need forms Module- two types Reactive — ReactiveFormsModule Template driven — FormsModule import { ReactiveFormsModule } from '@angular/forms'; or import { FormsModule } from '@angular/forms'; NgModule({ declarations: [ ...... ], imports: [ .... ReactiveFormsModule, ...... or FormsModule ........ ], providers: [], bootstrap: [AppComponent], exports:[] }) export class AppModule { }

Angular

1 min read

Basic angular interview question Which module do we need to include for using forms in app and…
Basic angular interview question Which module do we need to include for using forms in app and…
Angular

1 min read


Jun 7

How to navigate dynamically to path or page from ts(class)? Basic angular interview question

To navigate programmatically you need inject router service then call navigate function import {Router} from '@angular/common/router' . . . constructor(private router: Router){} ..... //in some method .... . . . this.router.navigate(['/property']);

Angular

1 min read

How to navigate dynamically to path or page from ts(class)? Basic angular interview question
How to navigate dynamically to path or page from ts(class)? Basic angular interview question
Angular

1 min read

ACHARYA A K

ACHARYA A K

82 Followers

Software Engineer| Angular Advocate | Cyclist

Following
  • Tom Smykowski

    Tom Smykowski

  • Sophia Martin

    Sophia Martin

  • Kamran Ahmed

    Kamran Ahmed

  • Netanel Basal

    Netanel Basal

  • Gaurav Mukherjee

    Gaurav Mukherjee

See all (24)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams