angular todolist SINGLETON & FACTORY demo