AngularJS <input> validation with no enclosing <form>

前端 未结 3 1002
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 14:24

Is it possible in Angular to validate a single, isolated in a similar way the forms are validated? I\'m thinking about something like this:

<
3条回答
  •  [愿得一人]
    2020-12-07 14:59

    
    
    
        
        AngularJS Plunker
        
        
        
    
    
    
    
        
    Required
    Name Required

    Hello {{name}}!

    First name

提交回复
热议问题