to do list in angular using better practices