MCQs > IT & Programming > Angular JS > You are given a nested Directive Structure. Suppose that the parent node. on receiving the data. broadcasts the information to render to its child directives. How will the broadcast be emitted and received within the parent scope?

Angular JS MCQs

You are given a nested Directive Structure. Suppose that the parent node. on receiving the data. broadcasts the information to render to its child directives. How will the broadcast be emitted and received within the parent scope?


Answer

Correct Answer:

emit - $scope.$broadcastfrender’. data)

receive - $scope.$on(‘render', function(data)[]) 


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

search

Angular JS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it