Answer the question
In order to leave comments, you need to log in
What is NgModuleRef for?
Hello.
A question. What exactly does NgModuleRef do? I know what is used to dynamically create components. But I didn’t quite understand from its api (there are only vague guesses) what exactly it is needed for and what functions it carries inside angular.
Google didn't help much in this case.
Thank you for your reply.
Answer the question
In order to leave comments, you need to log in
NgModuleRef is an object representing a module (an instance of NgModule), as written in the documentation:
NgModuleRef - represents an instance of an NgModule created by an NgModuleFactory. Provides access to the NgModule instance and related objects.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question