Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


How will you make sure that a single instance of any Service is available throughout the app?
Question Posted on 23 Jan 2021

Home >> Angular >> Angular 2 Building Blocks >> How will you make sure that a single instance of any Service is available throughout the app?




How will you make sure that a single instance of any Service is available throughout the app?
Choose the correct option from below list
(1)Register the service using 'imports' and add it to the Root Component
(2)Register the service using 'providers' and add it to the Root Module-------------
(3)Declare the service in the Root Component
(4)None of the options

Answer:-(2)Register the service using 'providers' and add it to the Root Module
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Angular 2 is written on top of Angular 1.5.x.
Services are included in components using ______.
Services are identified using the decorator ______.
There can be only one service in a component.
How many lifecycle methods does Angular offer apart from a Component's constructor()?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |