Angular 2 bootsrap app component without template/template is served with html

Discussão em 'Angular' iniciado por mirazasx, Março 24, 2025.

  1. mirazasx

    mirazasx Guest

    I used to build applications with angular1, there was the possible to have directives on the already loaded DOM elements, it was like you have the main component (app), which is built from loaded html and then inside that you can load directives from either loaded html or load it from URL.

    However in angular2 it seems that to bootstrap application I have to use component which requires me to have template/templateURL, which I think is not necessary since I don't want to load separately menus and other common stuff, I would rather do that on server level then loading it separately. Does anyone knows how could I achieve this in angular2?

    Continue reading...

Compartilhe esta Página