build(aio): improve rendering of directive selectors

This commit is contained in:
Peter Bacon Darwin 2017-09-11 13:56:39 +01:00 committed by Matias Niemelä
parent 39386eadea
commit 77d24afea3
1 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
{%- if doc.selector %}
<section class="selectors">
<h2>Selectors</h2>
{% for selector in doc.selector.split(',') %}
<div class="selector">
<code>{$ selector $}</code>
</div>
{% endfor %}
<code-example hideCopy="true" class="no-box api-heading selector">
{%- for selector in doc.selector.split(',') %}
{$ selector $}{% endfor %}
</code-example>
</section>
{% endif %}