Angular Quiz Review

Ace your homework & exams now with Quizwiz!

A component can have a child route defined using what property?

children

What angular decorator allows us to define the pipe name that is globally available for use in any template across the application?

pipe

What can be said about TypeScript?

Angular is based on TypeScript. This is a superset of JavaScript. TypeScript is maintained by Microsoft.

What decorator does the directive use to listen to the host/target events?

@HostListener

What form control class name gets set to true via [(ngModel)] whenever value is modified?

.ng-dirty

If you provide a custom service in two components' "providers" section of @Component decorator, how many instances of service shall get created?

2

In Angular routing, what tag is used to render matched component via active route?

<router-outlet></router-outlet>

In Angular, you can pass data from parent component to child component using what?

@Input()

What is the decorator used for configuring your module class?

@NgModule

In Angular, you can pass data from child component to parent component using what?

@Output()

Router is part of which module?

@angular/router

What wild card do you use to define a page not found route.

A double asterisk "**"

You can create local HTML reference of HTML tag using variable which starts with what character?

A pound/number sign "#"

Why would a Microservices Architecture be beneficial?

A suite of services can be deployed and upgraded without a rebuild of other, functioning services. Less service interruption for fast-paced cloud computing. Different parts of a development team can manage individual parts of a microservice.

What service can be used to extract route parameters inside a component?

ActivatedRoute

What are some microservice features?

Componentization. Decoupling. Fault tolerance.

What component represents a "target/host" DOM element inside a Directive's constructor?

ElementRef

One component can be declared inside more than one NgModule. True or False?

False

Custom pipe can modify actual value of variable apart from different presentation in HTML. True or False?

False.

A directive which modifies DOM hierarchy is called

Hierarchical directive

To use HttpClient component you need to import what module?

HttpClientModule

Is router a part of @angular/core?

No.

The HTTP service's get/put/post/delete function returns what?

Observable

We need to call below method of RouterModule for providing all routes in AppModule.

RouterModule.forRoot

What does subscribe do?

Streams data in synchronously.

How Observables are Used?

The Reactive Forms Module uses reactive programming and Observables for listening to user input The @output() decorator in a component takes an EventEmitter instance. EventEmitter is a subclass of the RxJS Observable

Which character is used for chaining multiple pipes?

The pipe "|"

There can be more than one <router-outlet> element in angular application. True or False?

True

Async Pipe subscribes to observer and update expression whenever there is data sent from observer. True or False?

True.

Observer sends data to multiple clients via what method?

next()

What command do you run to build an Angular application in production mode?

ng build -prod

Below command is used to run Static Code analysis of Angular application

ng lint

What is a couple of application life cycles?

ngOnChanges ngOnInit


Related study sets

PowerPoint ribbon tabs and functions

View Set

🟧 Chapter 64 - Arthritis and Connective Tissue Diseases

View Set

MIST 4630 MVC QUIZ, MIST Alexa & Lambda, MIST full stack, mist web standards

View Set

COURSE 3 - Google PMP Certification (Week 3)

View Set