docs(elements): add MDN links for mentioned built-in APIs in Elements guide (#40510)

PR Close #40510
This commit is contained in:
George Kalpakas 2021-01-26 12:58:11 +02:00 committed by Jessica Janiuk
parent a8269264bf
commit 73fcf47047
1 changed files with 2 additions and 3 deletions

View File

@ -64,8 +64,7 @@ create and destroy instances, and to detect and respond to changes.
The conversion process implements the `NgElementConstructor` interface, and creates a
constructor class that is configured to produce a self-bootstrapping instance of your component.
Use a JavaScript function, `customElements.define()`, to register the configured constructor
and its associated custom-element tag with the browser's `CustomElementRegistry`.
Use the built-in [`customElements.define()`](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) function to register the configured constructor and its associated custom-element tag with the browser's [`CustomElementRegistry`](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry).
When the browser encounters the tag for the registered element, it uses the constructor to create a custom-element instance.
<div class="lightbox">