Migration angularJS