K
K
Keeprock2017-04-03 17:36:30
Angular
Keeprock, 2017-04-03 17:36:30

Why is it possible to call from comments in Angular 1 directive?

With the restrict : 'M' option, you can restrict the use of directives to comments only. Something like that:

<!-- directive: hi-there this is all an argument -->

Question: Under what circumstances is this even necessary? Became interesting. Personally, I have never experienced anything like this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2017-04-03
@keeprock

Just in case

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question