<body> <login-content></login-content> <main-content></main-content> </body> Now both html-templates are stupidly present on the page, but how can we load it so that it can be loaded on a click, for example, by replacing and so that the angular will immediately load everything and work without error?
ng-if, you can use a router - Grundy