Refactor angular example

In preparation of allowing other Angular examples (like form auto generation using the discovery capabilities).