on  integration in AngularJS