Component file (foo.html
) is missing the <html><body>...</body></html>
tags:
<!DOCTYPE html>
<html>
<body>
<element name="x-foo" constructor="FooComponent" extends="button">
...
</element>
</html>
</body>
Both files (examples.html
and foo.html
) must be in the same base directory:
web
examples.html
foo.html
...
Then, examples.html
need be used as argument inside build.dart
:
build(new Options().arguments, ['web/example.html']);
And, finally, foo.html
(that is, web/foo.html
) must be the one to be linked:
<link rel="components" href='foo.html'>