
We are now able to attach "side effects" to property value changes, from inside the component and outside.
13 lines
328 B
HTML
13 lines
328 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>WC demo</title>
|
|
<script type="module" src="Counter.mjs"></script>
|
|
</head>
|
|
<body>
|
|
<h1>Attach Effect Test</h1>
|
|
<my-counter></my-counter>
|
|
</body>
|
|
</html>
|