Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Angular elements - łączymy się z innymi
Search
Tomasz Chomicz
March 31, 2021
Programming
0
11
Angular elements - łączymy się z innymi
Tomasz Chomicz
March 31, 2021
Tweet
Share
Other Decks in Programming
See All in Programming
Goのmultiple errorsについて (2024年4月版)
syumai
3
590
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.1k
2 週間で Twitter Bot を作ってみた
contour_gara
0
270
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
130
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
180
Node.js v22 で変わること
yosuke_furukawa
PRO
5
2.2k
Site Reliability Engineering for GMO
pyama86
7
1k
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
820
Snowflakeで眠ったデータを起こそう!
estie
0
110
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
8
4k
Java 22 Overview
kishida
1
180
Anthropic Cookbook のおすすめレシピ
schroneko
7
870
Featured
See All Featured
Designing the Hi-DPI Web
ddemaree
276
33k
Docker and Python
trallard
34
2.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
Design by the Numbers
sachag
274
18k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
Testing 201, or: Great Expectations
jmmastey
28
6.3k
Into the Great Unknown - MozCon
thekraken
10
990
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Teambox: Starting and Learning
jrom
128
8.4k
Transcript
None
Angular Elements Tomasz Chomicz FrontEnd Developer
Wstęp
Nie ma rzeczy uniwersalnych ?
Co to jest WebComponent ?
WebComponent ELEMENT DRZEWA DOM O ZESTAWIE CECH I ZDEFINIOWANYM ZACHOWANIU
Jakiś przykład ?
– Custom elements – Shadow DOM – HTML Templates Co
to jest WebComponents ?
Angular Elements
Przepis – Tworzymy projekt – Dodajemy @angular/elements – Tworzymy nowy
komponent
Przepis cd... – Nie zpapomnij o ... Polifil –ach (polyfills.ts)
– Tworzymy niestandardowy element – Definiujemy tag – Wmawiamy angularowi
że aplikacja wystartowała Przepis cd... Osadzamy element na stronie
Czy o czymś nie zapomniałeś?
Komponent - HTML
Komponent – TS
Komunikacja – @Input() – parsujemy wartość – @Output()– małe liter
– @HostBinding() – dbamy o zmiany atrybutów
A co ze stylami ?
Shadow DOM
Jak poradzić sobie z Shadow DOM?
Zmienne CSS
To już prawie koniec
Build
None
Thank you pgs-soft.com
[email protected]