logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology See What Others Are Saying!
  • Question
  • What is factory method in AngularJS ?


  • Options
  • A. It generates the facts and figures
  • B. It is used to create the service
  • C. It is used to calculate the factorial of a number
  • D. All the above

  • Correct Answer
  • 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 is
    module.factory('factoryName', function);

  • Tags: Analyst, Software Architect

    More questions

    • 1. Someone who loans money is called

    • Options
    • A. Lender
    • B. Borrower
    • C. Investee
    • D. Investor
    • Discuss
    • 2. Cache events are processed when ever the Postback events occurs

    • Options
    • A. TRUE
    • B. FALSE
    • Discuss
    • 3. EXPLAIN has output with MATCHCOLS = 0. What does it mean?
    • Discuss
    • 4. The new product development process usually starts with

    • Options
    • A. idea generation
    • B. market strategy development
    • C. concept development
    • D. idea screening
    • Discuss
    • 5. How do you display last 5 records in DB2?
    • Discuss
    • 6. Managing the sales force : For a new salesperson, what are his training needs?
    • Discuss
    • 7. What is SPUFI?
    • Discuss
    • 8. How will u send data from a cobol file to db2 table?
    • Discuss
    • 9. What is buying forward?
    • Discuss
    • 10. What is Benchmarking?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment