<!-- foo.hbs -->
<bounce-animation></bounce-animation>
- Where this component comes from
polymer_components
orbower_components
? - What about components that live in files with identical names?
For example,
cool-animations/bounce-animation.html
andmy-animations/bounce-animation.html
- What if component lives in a file with a different name?
For example,
cool-animations/animations.html
Conclusion: It makes it difficult to decide where component comes from. We could introduce conventions like file name has to be the same as component name but there are components that don't follow such convention. Therefore, import has to be part of the same file where the component is used.
<!-- foo.hbs -->
<link rel="import" href="cool-animations/animations.html">
<bounce-animation></bounce-animation>
<!-- bar.hbs -->
<link rel="import" href="my-animations/my-animations.html">
<bounce-animation></bounce-animation>