We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff838d4 commit 7c91abaCopy full SHA for 7c91aba
examples/viewer.js
@@ -14,6 +14,13 @@ import * as northwind from './northwind.js';
14
import '../css';
15
16
17
+let tags = {};
18
+
19
+Object.keys(components).forEach(name => {
20
+ tags['ax-' + name.toLowerCase()] = components[name];
21
+});
22
23
24
enableProdMode();
25
26
@@ -64,7 +71,7 @@ class AppComponent {
64
71
ngOnInit(){
65
72
66
73
let render = (component, props) => {
67
- this.component = component;
74
+ this.component = tags[component];
68
75
this.inputs = props;
69
76
};
70
77
@@ -79,7 +86,7 @@ class AppComponent {
79
86
this.showError = location.hash && !item;
80
87
81
88
if (typeof item == 'function'){
82
- item({render}, components, templates, data);
89
+ item({render}, templates, data);
83
90
}
84
91
85
92
this.name = name;
0 commit comments