M
M
Maxim Ivanov2016-07-12 09:42:07
Angular
Maxim Ivanov, 2016-07-12 09:42:07

How to display directives dynamically in angularJS?

<body>
<login-content></login-content>
<main-content></main-content>
</body>

now both html templates are stupidly present on the page, but how to make it possible to load on click, for example, by replacing and so that angular immediately parses everything and works without error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-07-12
@splincodewd

uirouter? ngIf?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question