menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordPro: Develop with 2sxc (Apps, Content-Types, Templates, etc.)
  • south
  • fiber_manual_recordJS: Angular Apps Development
  • south
  • fiber_manual_recordPrevious Version: Dnn-Sxc-Angular 6
  • south

folder_sharedElements / Web-Components

  • homeChecklist Templates
  • south
  • fiber_manual_recordPro: Develop with 2sxc (Apps, Content-Types, Templates, etc.)
  • south
  • fiber_manual_recordJS: Angular Apps Development
  • south
  • fiber_manual_recordPrevious Version: Dnn-Sxc-Angular 6
  • south

folder_sharedElements / Web-Components

Folders and checklists

  • check_circleAngular Elements - Create Attribute which listens to changes
  • check_circleConvert 2sxc Angular App into Angular Elements (WebComponent)

Parts (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

This is based on blogs around the release of Angular 6.

  1. Add these packages to npm
    ng add @angular/elements
  2. in the app-module
    1. add these imports 
      import { Injector} from '@angular/core'; // for elements
      import { createCustomElement } from '@angular/elements'; // for elements
    2. replace: bootstrap: [YourAppComponentName]
      with: entryComponents: [YourAppComponentName]
  3. replace: export class AppModule {} with
    export class AppModule {
      constructor(privateinjector:Injector) {
        const tag=createCustomElement(YourAppComponentName, { injector });
        customElements.define('your-tag-name', tag);
      }
      ngDoBootstrap() {}
    }
  4. Add the necessary polyfills as recommended in this SO thread
    • if you're building to ES5 and only need to ensure it works in chrome, add this after the section * APPLICATION IMPORTS:
      import '@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js';
  5. ...
Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/vu8Fi6Xi
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (0)

Others referencing this

Uses these (0)

Documents linked from this document

How it Behaves

How this document is categorized changes how it behaves.

This is a main document, it is listed normally and appears in search result.

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing