San provides san-for directive (abbreviated as s-for) to render a list from Array data. Then how to traverse and render Object data? Since san does not provide directives for Object traversal, you can make use of the computed property.
Usage
1 | class MyComponent extends San.component { |
Demo
See the Pen san-traverse-object by liuchaofan (@asd123freedom) on CodePen.