a very simple example taken from angulardart.org