MCQs > IT & Programming > Angular JS > Consider that a service called Shttp makes server calls. Which of the following examples about the dependency injection in AnguiarJS is correct? Example 1: function fetchDashboard Data() [ var $http = new HttpServicel); return Shttp.get('my/url'); ] Example 2: function fetchDashboardData(Shttp) [ return $http.get['my/url'); 1 Example 1 Example 2

Angular JS MCQs

Consider that a service called Shttp makes server calls. Which of the following examples about the dependency injection in AnguiarJS is correct?

Example 1:

function fetchDashboard Data()

[

var $http = new HttpServicel);

return Shttp.get(

Answer

Correct Answer:

Neither option a nor b

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Angular JS MCQ Questions

search

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it