HIPPOTHEME-16: fix selection of tree items

Also fixed the formatting of HTML attributes in the angular components page