made angular work programatically