reorganized angular example for bestpractice