You are on page 1of 1

Who creates new services required by applications - provider

Which of the following provides data to components - services


You define Service in - constrctor
Service is a - class
@Service decorator is used to create a new Service - false
-------------------
Promise returns single value when calls - true
Observable can handle multiple events - true
PATCH method is used when sending passwords or other sensitive information - true
In a HTTP call, where is the data fetched from - api
Observable returns only single object in HTTP request - true
-------------------
Router defines mapping of URL to - component
Which property of “Routes” define the path of the component - Path
Which is not a router guard type - CanDeactivateChild
Which mechanism allows user to navigate between components / views - routing
Which of the following is affected / changed on loading components - url
EventEmitter is a ________ defined in @angular/core module used to emit custom
events - class
-------------------
FormGroups can nest inside other FormGroups - true
Which of the following will be “true” if user changed the value of control - dirty
How to prevent Angular2 from auto-validating form - novalidate
Which function bootstraps the form to its pristine state - reset
------------------
_____________ acts as container to store all the services required for the creation
of component - providers
Which is NOT an operator of Observables - geo
Which property describes the path you want to redirect the user - redirectTo
_____________ decorator creates services - @Injectable
Non-parameterised routes always take priority over parameterised routes - true
In Reactive forms, the HTML of the forms are automatically created - false
Promise is cancellable - false
_____________ is not a primary HTTP verb - fetch

You place _________________ where you want the components inserted. - router-outlet
FormsModule is imported from @angular/_______ in Model Driven Form - none of these
You add 'novalidate' attribute to form, to prevent browser from automatically
validating. - true
Which decorator is optional if the class has any other decorator? - @injectable
Where is the data fetched from in a HTTP call? - API

You might also like