Write toolbar as Angular directive