A tree consists of nodes and branches. Each branch can contain more nodes and/or branches. The branches can be represented by nested ul tags and the nodes by li tags within them. We will create 2 Ember views, one for the nodes and the other for the branches. An Ember view has a tagName property which will be assigned to the html tag it creates. We will use an Ember CollectionView to represent the branches. A collection view renders its content within the itemViewClass you specify.
Your new post is loading...