When to use and when to use import in Aurelia?

On my second day of Aurelia, I saw how custom attributes can be created and used.

To use the custom attribute my view html:

<require from="./highlightattribute"></require> 

However, I found another code that uses:

 <import from='./chord-diagram'></import> 

When do I use require and when do I use import?

+8
aurelia
source share
1 answer

<import from=... is the old syntax. We had to switch to <require from... to help support older versions of IE. Therefore, please always use <require from...

+14
source share

All Articles