examples/todo: move StateController to Angular