You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: src/pages/docs/guides/web-components.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: "Web Components"
3
-
description: "Using metal components as custom elements (web components)."
3
+
description: "Using metal components as web components (custom elements)."
4
4
layout: "guide"
5
5
weight: 230
6
6
---
7
7
8
8
<articleid="web_components">
9
9
10
-
## [Custom Elements](#custom_elements)
10
+
## [Web Components](#web_components)
11
11
12
12
Metal components are generally invoked in one of three ways.
13
13
@@ -33,7 +33,7 @@ new metal.MyComponent({
33
33
<MyComponent title="Hello, World"/>
34
34
```
35
35
36
-
However, with the help of the [metal-custom-element](https://www.npmjs.com/package/metal-custom-element) package, Metal components can be invoked as [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements) in
36
+
However, with the help of the [metal-web-component](https://www.npmjs.com/package/metal-web-component) package, Metal components can be invoked as [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements) in
37
37
plain HTML.
38
38
39
39
```xml
@@ -46,29 +46,29 @@ plain HTML.
46
46
47
47
## [Install](#install)
48
48
49
-
First step is to install the `metal-custom-element` package.
49
+
First step is to install the `metal-web-component` package.
50
50
51
51
```bash
52
-
npm i --save metal-custom-element
52
+
npm i --save metal-web-component
53
53
```
54
54
55
-
Currently custom elements do not work on every browser, so a pollyfill must be
55
+
Currently web components do not work on every browser, so a pollyfill must be
56
56
used. Include the [webcomponents-lite pollyfill](https://www.webcomponents.org/polyfills) if
57
-
you intend to use custom elements on Firefox, Edge, or IE11.
57
+
you intend to use web components on Firefox, Edge, or IE11.
0 commit comments