Create case model and Set up angularjs