Into my second day of Aurelia and I have seen how custom attributes can be created and used.
To use the custom attribute my view html used:
<require from="./highlightattribute"></require>
However I have found some other code which uses:
<import from='./chord-diagram'></import>
When do I use require and when do I use import?
<import from=...
is the old syntax. We had to move to <require from...
to aid in supporting older versions of IE. So please always use <require from...
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With