5 lines
8.3 KiB
JSON
5 lines
8.3 KiB
JSON
|
{
|
||
|
"id": "api/elements/NgElementConstructor",
|
||
|
"title": "NgElementConstructor",
|
||
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/elements\", \"name\": \"@angular/elements\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/elements/NgElementConstructor\", \"name\": \"NgElementConstructor\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/elements\">@angular/elements</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/elements/src/create-custom-element.ts?message=docs(elements)%3A%20describe%20your%20change...#L15-L37\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/elements/src/create-custom-element.ts#L15-L37\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"ngelementconstructor\">NgElementConstructor<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/elements/NgElementConstructor#ngelementconstructor\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label interface\">interface</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Prototype for a class constructor based on an Angular component\nthat can be used for custom element registration. Implemented and returned\nby the <a href=\"api/elements/createCustomElement\">createCustomElement() function</a>.</p>\n\n \n </section>\n \n \n <section class=\"interface-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\ninterface <a href=\"api/elements/NgElementConstructor\" class=\"code-anchor\">NgElementConstructor</a><P> {\n <a class=\"code-anchor\" href=\"api/elements/NgElementConstructor#observedAttributes\"><span class=\"member-name\">observedAttributes</span>: string[]</a>\n <a class=\"code-anchor\" href=\"api/elements/NgElementConstructor#new\"><span class=\"member-name\">new </span>(injector?: Injector): NgElement & WithProperties<P></a>\n}\n</code-example>\n\n \n \n\n\n \n \n\n</section>\n\n \n<section class=\"see-also\">\n <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/elements/NgElementConstructor#see-also\"><i class=\"material-icons\">link</i></a></h2>\n <ul>\n \n <li><p><a href=\"guide/elements\" title=\"Turning Angular components into custom elements\">Angular Elements Overview</a></p>\n</li>\n </ul>\n</section>\n\n\n \n \n \n<section class=\"instance-properties\">\n <h2 id=\"properties\">Properties<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/elements/NgElementConstructor#properties\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"observedAttributes\"></a>\n <code class=\"\"><span class=\"member-name\">observedAttributes</span>: string[]</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n <p>An array of observed attribute names for the custom element,\n
|
||
|
}
|