angular2dart组件的属性和方法

时间:2016-11-14 09:41:31

标签: dart

在查看组件的文档时,有许多方法,属性等等 那有什么好处?

例如,有MaterialInputComponent和属性errorMsg,我该如何使用它?

1 个答案:

答案 0 :(得分:3)

https://github.com/dart-lang/angular2_components/blob/master/lib/src/components/material_input/material_input.dart#L66

/// - `errorMsg` -- The error msg to be shown on the input if the max characters
///   are hit or the msg for an invalid number in the case of type = "number"