-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 1013 Bytes
/
Copy pathindex.html
File metadata and controls
43 lines (38 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NuekJS Utility tests</title>
</head>
<body>
<h1>NuekJs Utility Tests</h1>
<p>Checking Component</p>
<button id="button">Click me to see magic</button>
<div id="main">
</div>
</body>
<script src="/scripts/main.js" type="module"></script>
<script type="module">
var props1 = [
{ name: "John", age: 25, role: "Developer"},
{ name: "Jane", age: 30, role: "Designer" }
];
var prop2 = [
{ name: "James", age: 48, role: "Driller" },
{
name: "Judah", age: 33, role: "Doctor"
}
];
var prop3 = [
{
name: "Judah", age: 33, role: "Doctor"
}
]
const component = new NuekDynamicPropsComponent("#main","fileComponents/components.nuek",props1,true);
const component2 = new NuekStaticComponent("#main","fileComponents/components2.nuek");
document.querySelector("#button").addEventListener("click", ()=>{
component.props = prop2;
});
</script>
</html>