D
D
Dmitry-G2015-04-13 20:17:41
Angular
Dmitry-G, 2015-04-13 20:17:41

Ng-include: How to make an included file replace the parent one?

Hello, tell me please.
I use ng-include to include the template:
<div ng-include="tabCurrent"></div>
tabCurrent - Path that changes.
I need the div block to be replaced with the included template when connected.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kano, 2015-04-13
@Kano

Maybe using the ngInclude directive as an element would work?

A
Andrew, 2015-04-13
@couchemar

I think you need ng-view, not ng-include

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question