how to show validate message in form in angular 2?

前端 未结 1 417
一生所求
一生所求 2021-01-21 20:43

I am trying to show validate message in form in angular 2 ? I am getting this error

Cannot read property \'hasError\' of undefined

I added these

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-21 20:59

    This should do what you want:

    
    
     
    username is required
    Minimum password length is 8!

    Plunker example

    0 讨论(0)
提交回复
热议问题