Skip to content

Commit 67307e4

Browse files
Update commentedExample.srlx
1 parent 4cf06ec commit 67307e4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Sample Open Source Implementations/head/commentedExample.srlx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies =
88
//Each scope can have its own variables with values and independant values!
99

1010
//Every scope can read and write parent scopes variables however by changing them, it will only affect local one and not parents one!
11-
$name; //"app" ($ obtains value "app")
11+
$name; //"app" ($ obtains value from variable, in this case "app")
1212
$name = "no longer app lol!";
1313

1414
composition-api = "^1.0.0-beta.21", //This is one of the variables of this scope...
@@ -96,11 +96,24 @@ devDependencies =
9696
}
9797
};
9898

99+
//Since 1.2.5 Serializer fully supports Json and JavaScript object!
100+
jsonCrossover =
101+
{
102+
"hello" : "Hello world I am Javascript object notation!";
103+
"jsonObject" :
104+
{
105+
name: "John",
106+
age: 31,
107+
city: "New York"
108+
};
109+
"jsonArray" : [1, 2, 3, 4];
110+
},
111+
99112
//Variable "bullshit" cant be accessed here yet!
100113
bullshit =
101114
{
102115
//This scope cant access variable that is stored by (bullshit), because variables are always created after its value (Scope in this case) is constructed!
103-
server = "service server",
116+
server = "service server",
104117
build = "service build",
105118
lint = "service lint";
106119
},

0 commit comments

Comments
 (0)