fill up id-s in angular model after saving data