0% found this document useful (0 votes)
76 views

Angular 2

The document contains multiple choice questions about Angular concepts. Key points include: - The reset function bootstraps a form to its initial state. - Services are defined using the @injectable decorator. - HTTP requests fetch data from an API endpoint. - The router defines URL mappings to components using routes and path properties. - Providers act as containers for services required by components.

Uploaded by

AniKet B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

Angular 2

The document contains multiple choice questions about Angular concepts. Key points include: - The reset function bootstraps a form to its initial state. - Services are defined using the @injectable decorator. - HTTP requests fetch data from an API endpoint. - The router defines URL mappings to components using routes and path properties. - Providers act as containers for services required by components.

Uploaded by

AniKet B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Which function bootstraps the form to its pristine state?

= reset

In Reactive forms, the HTML of the forms are automatically created.

= false

Who creates new services required by applications?

= providers

You define Service in __________.

= component

Where is the data fetched from in a HTTP call?

= API

@Service decorator is used to create a new Service.

= false

Router defines mapping of URL to ______________.

= Directive

_____________ is not a primary HTTP verb.

= FETCH

Which is NOT an operator of Observables?

GEO

Which property of “Routes” define the path of the component?

= path

You place _________________ where you want the components inserted.

= router-outlet

Promise is cancellable.

false

_____________ acts as container to store all the services required for the creation of component.

= providers

Non-parameterised routes always take priority over parameterised routes.

true
FormsModule is imported from @angular/_______ in Model Driven Form.

= Forms

EventEmitter is a ________ defined in @angular/core module used to emit custom events.

= Method

_____________ decorator creates services.

= @injectable

PATCH method is used when sending passwords or other sensitive information.

true

Which is not a router guard type?

= canDeactiveChild

You might also like