inial migrate from angular to native js