angular crud completed index and add on single page using factory