(A) True (B) False[...]
Category: LinkedIn Angularjs Assessment Questions and Answers
What is the purpose of the data property (seen in the example below) in a route configuration?What is the purpose of the data property (seen in the example below) in a route configuration?
{ path: ‘customers’, component: CustomerListComponent, data: { accountSection:true } [...]
What is the difference, if any, of the resulting code logic based on these two provider configurations?What is the difference, if any, of the resulting code logic based on these two provider configurations?
[ { provide: FormattedLogger, useClass: Logger }] [ { provide: FormattedLogger, useExisting: Logger }] They are[...]
What is the value type that will be stored in the headerText template reference variable in this markup?What is the value type that will be stored in the headerText template reference variable in this markup?
<h1 #headerText>User List</h1> an Angular ElementRef, a wrapper around a native element the inner text of the <h1>[...]
What Angular template syntax can you use on this template-driven form field to access the field value and check for validation within the template markup?What Angular template syntax can you use on this template-driven form field to access the field value and check for validation within the template markup?
<input type=”text” ngModel name=”firstName” required minlength=”4″>[...]
What are the HostListener decorators and the HostBinding decorator doing in this directive?What are the HostListener decorators and the HostBinding decorator doing in this directive?
@Directive({ selector: ‘[appCallout]’ }) export class CalloutDirective { @HostBinding(‘style.font-weight’) fontWeight = ‘normal’; @HostListener(‘mouseenter’) [...]
How would you configure a route definition for a UserDetailComponent taht supports the URL path user/23 (where 23 represents the id of the requested user)?How would you configure a route definition for a UserDetailComponent taht supports the URL path user/23 (where 23 represents the id of the requested user)?
{ path: ‘user/:id’, component: UserDetailComponent } { url: ‘user/:id’, routedComponent: UserDetailComponent } { routedPath: ‘user/:id’, component: UserDetailComponent } { destination:[...]
Pick the best description for this template syntax code:Pick the best description for this template syntax code:
<span>Boss: {{job?.bossName}} </span> The ? is shorthand for the async pipe. The job value must be an Observable. It is[...]
What are Angular lifecycle hooks?What are Angular lifecycle hooks?
loggers for tracking the health of an Angular app providers that can be used to track the instances of components[...]
Based on the following component, what template syntax would you use to bind the TitleCardComponent’s titleText field to the h1 element title property?Based on the following component, what template syntax would you use to bind the TitleCardComponent’s titleText field to the h1 element title property?
@Component({ selector: ‘app-title-card’, template: ‘<h1 title=”User Data”> {{titleText}}</h1>’ }) export class TitleCardComponent { titleText[...]