S
S
Sergey2015-12-02 17:35:10
Angular
Sergey, 2015-12-02 17:35:10

Is the directive eating the insides of the angular.js block?

<div class="HeadBlock" video-header>
  тест
</div>

In the directive I prescribe the value
transclude: true
But it still removes the entry test

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-12-02
@Sergamers

In order to add the contents of a block with a directive, you need to set the ngTransclude directive in the directive template. Article

S
Sergey, 2015-12-02
Protko @Fesor

https://docs.angularjs.org/api/ng/directive/ngTran...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question