L
L
liltrill2019-10-27 21:14:22
Angular
liltrill, 2019-10-27 21:14:22

Can it be made more concise?

<svg xmlns="http://www.w3.org/2000/svg"><use attr.href="/assets/svg-list/svg-list.svg#{{name}}"></use></svg>

attr.href - can you just make href somehow? I tried it didn't work :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-10-27
@liltrill

Make a directive with a selector use[href], but why? Save on matches

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question