जॉइन Examsbook
1166 0

प्र: What is factory method in AngularJS ?

  • 1
    It generates the facts and figures
  • 2
    It is used to create the service
  • 3
    It is used to calculate the factorial of a number
  • 4
    All the above
  • उत्तर देखेंउत्तर छिपाएं
  • Workspace

उत्तर : 2. "It is used to create the service"
व्याख्या :

Answer: B) It is used to create the service Explanation: In general, Services are Javscript functions and are responsible to do a specific tasks. Factories implements module pattern in which we use a factory method to generate an object which is use for building models. It's syntax ismodule.factory('factoryName', function);

क्या आपको यकीन है

  त्रुटि की रिपोर्ट करें

कृपया संदेश दर्ज करें
त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई