vsn 0.1.124 → 0.1.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Events</title>
6
+
7
+ <style></style>
8
+ </head>
9
+ <body>
10
+
11
+ <script type="text/javascript" src="../vsn.js"></script>
12
+ <script type="text/vsn" vsn-script>
13
+ class .btn {
14
+ func construct() {
15
+ log('btn construct');
16
+ }
17
+
18
+ on click() {
19
+ log('btn click');
20
+ }
21
+ }
22
+ </script>
23
+
24
+ <div id="html-container"></div>
25
+ <a href="../resources/xhr-cfs.html" vsn-xhr="#html-container.@html = response;?(#html-header).$color='yellow';" class="btn">XHR</a>
26
+
27
+ </body>
28
+ </html>
@@ -0,0 +1 @@
1
+ <a class="btn" href="#">New Button</a>
package/demo/service.html CHANGED
@@ -6,10 +6,10 @@
6
6
  </head>
7
7
  <body>
8
8
 
9
- <div id="testing" vsn-service:demo="ServiceDemo">
10
- <button vsn-on:click="demo.add(1)">Add</button>
9
+ <div id="testing" vsn-service:demo="ServiceDemo" vsn-on:set-value="log('value', $event.detail.value);demo.count = $event.detail.value">
10
+ <button vsn-on:click="demo.add(1)" id="add-button">Add</button>
11
11
  <span vsn-bind="demo.count"></span>
12
- <span vsn-exec="#testing.demo.count = 15">Reset</span>
12
+ <span vsn-on:click="#testing.demo.count = 0">Reset</span>
13
13
  </div>
14
14
 
15
15
  <div vsn-service:demo2="ServiceDemo">