trying to mirrow angularv1.2.x