better define model in angular