What is the difference between <compose> and <require> in Aurelia?
2 answers
<require>imports the resources you want to use in the view. It is conceptually similar to calling JavaScript require()in AMD or CommonJS module code (or in an expression importin ES6 code). You must use <require>to import a custom item or custom attribute that you would like to use in your view. You still need to explicitly display it as <nav-bar></nav-bar>.
<compose> .
+8
, require. css javscript, . , .
, .
http://patrickwalters.net/best-parts-of-aurelia-1-composing-custom-elements-templates/
+1