[Angular 2] Adding a data model

Instead of each time create a string add into the todos, we create a TodoModel.

原文地址:https://www.cnblogs.com/Answer1215/p/5300449.html