AngularJs Linkedin Answer
Q1. What is the purpose of the ViewChild decorator in this component class? @ @Component({ ... template: '<p #bio></p>' })…
Job Interview Questions, Answers, and Tips to Prepare
Q1. What is the purpose of the ViewChild decorator in this component class? @ @Component({ ... template: '<p #bio></p>' })…
<form #userForm="ngForm"> <input type="text" ngModel name="firstName" required> <input type="text" ngModel name="lastName" required> <button (click)="submit(userForm.value)">Save</button> </form> [ ] <button (click)="submit(userForm.value)" disable="userForm.invalid">…
<div \*ngIf="isVisible">Active</div> <div [hidden]="!isVisible">Active</div> The ngIf is shorthand for the other example. When Angular processes that directive, it writes a…
@Component({ selector: 'app-shopping-cart', . . . }) export class ShoppingCartComponent { @Output() itemTotalChanged = new EventEmitter(); } It makes the…
routeTo routerLink routePathn appLink
It is used to configure what values are allowed for the control. It is used to configure what values are…
viewEncapsulation and viewEncapsulationFilesnull and null There is only one and it is the property named css. There is only one…
[ ] <ul> <li [ngFor]="let productName of productNames"> {{ productName }} </li> </ul> [ ] <ul> <li ngFor="let productName of…
@Component({ selector: 'app-user-card', . . . }) Any element with the attribute app-user-card, such as <div app-user-card></div>. The first instance of <app-user-card></app-user-card>.…