vsn 0.1.114 → 0.1.115
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.
- package/demo/service.html +21 -0
- package/demo/vsn.js +3 -3
- package/dist/AST/ArithmeticAssignmentNode.js +2 -2
- package/dist/AST/ArithmeticAssignmentNode.js.map +1 -1
- package/dist/AST/FunctionCallNode.js +0 -1
- package/dist/AST/FunctionCallNode.js.map +1 -1
- package/dist/AST/ScopeMemberNode.js +0 -2
- package/dist/AST/ScopeMemberNode.js.map +1 -1
- package/dist/AST/ScopeNodeAbstract.js +1 -0
- package/dist/AST/ScopeNodeAbstract.js.map +1 -1
- package/dist/Controller.d.ts +2 -2
- package/dist/Controller.js +2 -2
- package/dist/Controller.js.map +1 -1
- package/dist/Scope/ScopeObject.d.ts +3 -0
- package/dist/Scope/ScopeObject.js +28 -0
- package/dist/Scope/ScopeObject.js.map +1 -0
- package/dist/Scope/properties/FloatProperty.d.ts +4 -0
- package/dist/Scope/properties/FloatProperty.js +30 -0
- package/dist/Scope/properties/FloatProperty.js.map +1 -0
- package/dist/Scope/properties/IntegerProperty.d.ts +4 -0
- package/dist/Scope/properties/IntegerProperty.js +30 -0
- package/dist/Scope/properties/IntegerProperty.js.map +1 -0
- package/dist/Scope/properties/_imports.d.ts +2 -0
- package/dist/Scope/properties/_imports.js +5 -1
- package/dist/Scope/properties/_imports.js.map +1 -1
- package/dist/Service.d.ts +2 -2
- package/dist/Service.js +2 -2
- package/dist/Service.js.map +1 -1
- package/dist/attributes/ControllerAttribute.js +19 -7
- package/dist/attributes/ControllerAttribute.js.map +1 -1
- package/dist/demo/ServiceDemo.d.ts +5 -0
- package/dist/demo/ServiceDemo.js +45 -0
- package/dist/demo/ServiceDemo.js.map +1 -0
- package/dist/demo.d.ts +2 -0
- package/dist/demo.js +17 -0
- package/dist/demo.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/src/AST/ArithmeticAssignmentNode.ts +4 -3
- package/src/AST/FunctionCallNode.ts +0 -1
- package/src/AST/ScopeMemberNode.ts +0 -2
- package/src/AST/ScopeNodeAbstract.ts +1 -0
- package/src/Controller.ts +2 -2
- package/src/Scope/ScopeObject.ts +3 -0
- package/src/Scope/properties/FloatProperty.ts +5 -0
- package/src/Scope/properties/IntegerProperty.ts +5 -0
- package/src/Scope/properties/_imports.ts +2 -0
- package/src/Service.ts +2 -2
- package/src/attributes/ControllerAttribute.ts +18 -6
- package/src/demo/ServiceDemo.ts +11 -0
- package/src/demo.ts +2 -0
- package/src/version.ts +1 -1
- package/test/Controller.spec.ts +5 -1
- package/test/attributes/ServiceAttribute.spec.ts +10 -3
- package/webpack.config.js +5 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>VSN Service Attribute Demo</title>
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
|
|
9
|
+
<div vsn-service:demo="ServiceDemo">
|
|
10
|
+
<button vsn-on:click="demo.add(1)">Add</button>
|
|
11
|
+
<span vsn-bind="demo.count"></span>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div vsn-service:demo2="ServiceDemo">
|
|
15
|
+
<button vsn-on:click="demo2.add(1)">Add</button>
|
|
16
|
+
<span vsn-bind="demo2.count"></span>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<script type="text/javascript" src="vsn.js"></script>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|