major simplification to angular example