Checkpoint before adding in AngularJS