Add partial implementation in angularJS