j-templates 7.0.20 → 7.0.21

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.
Files changed (2) hide show
  1. package/Node/vNode.js +1 -1
  2. package/package.json +1 -1
package/Node/vNode.js CHANGED
@@ -110,7 +110,7 @@ function InitNode(vnode) {
110
110
  if (componentConstructor) {
111
111
  vnode.component = new componentConstructor(vnode);
112
112
  const componentScope = Store_1.ObservableScope.Create(function () {
113
- let nodes = vnode.component.Template();
113
+ let nodes = injector_1.Injector.Scope(vnode.injector, function () { return vnode.component.Template(); });
114
114
  if (!Array.isArray(nodes))
115
115
  nodes = [nodes];
116
116
  return nodes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "j-templates",
3
- "version": "7.0.20",
3
+ "version": "7.0.21",
4
4
  "description": "j-templates",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/TypesInCode/jTemplates",