~/talk

Building reusable Web components with Angular

Talkat Jfokus 2019 · 2019-02-04..02-06· [angular, web-platform]
github:sazimi
slides:none on file

Creates a reusable "bb-red-strawberry" web component from an HTML <template>, using connectedCallback and attributeChangedCallback to clone and update content, and encloses it with shadow DOM and named slots for safe composition. Builds the same component from Angular with ng add @angular/elements, sets viewEncapsulation to ShadowDom, calls customElements.define and adjusts tsconfig target to es2015. Uses polyfills and ng-x-build-plus to produce a single small bundle (ng-x-build-plus). Mentions lit-html / lit-html and lit-element and reports the component runs and styles are encapsulated.

AI-written summary · about

  1. 0:00Intro
  2. 3:45Componentbased architecture
  3. 7:35Framework support
  4. 8:52Components
  5. 9:38HTML Template
  6. 11:59Benefits of Template
  7. 12:45Custom Elements
  8. 14:29Life Cycle of Custom Elements
  9. 18:27Shadow DOM
  10. 21:25Custom Properties
  11. 23:11Documentation
  12. 24:26Angular Element
  13. 33:31Web Component
  14. 38:35Lithas Shimmer
  15. 41:53Lithas Elite Element
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.