Angular2 No value accessor for form control with unspecified name attribute

错误:

查询网上的资料报错的原因是是双向绑定 [(ngModel)] 不能绑定再非常规区域(具体的原因不清楚)

此次绑定的场景

 <data-tree>为一个自定义的组件
 
解决:
在组件的标签中增加  ngDefaultControl 即可
原文地址:https://www.cnblogs.com/sugarwxx/p/13793066.html