I would like to add view in my tabview component dynamically.
I read this post but I don’t understand what I do wrong
var str = '{"body":[{"view ": "template ", "src":"index1.html"}]';
$$("tabview").addView(JSON.parse(str));
I get error “TypeError: t.s is undefined”
Is it possible add view dynamically from json file?
Could give me an example please.