How many modules can be used in a single HTML page?

devquora
devquora

Posted On: Feb 22, 2018

 

Only one module can be implemented in one HTML page. If multiple modules are implemented then angular only considers the module defined in the topmost element of the HTML page. The remaining modules are ignored.In order to have multiple modules in an HTML page, we have to manually bootstrap the modules except for the topmost module. To manually bootstrap the module $bootstrap is used.It is recommended by the angular team to use only one module per page in a web application.

Also, Read Latest Interview s and answers on React JS

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    AngularJS Basic Interview Questions

    What is AngularJS?

    AngularJS is a javascript framework which helps in developing web applications in MVC architectural pattern & SPA or..

    AngularJS Basic Interview Questions

    What are angular directives?

    Angular directives are the attributes which are decorated on the html tags or elements of an html page. Directives have ..

    AngularJS Basic Interview Questions

    What are custom directives?

    Angular provides the ability to create our own directives to implement our own custom templates or logic in our web appl..