I am developing an angular js app. with a asp.net web api server. The validation is model based like:
[Required]
public int ID { get; set; }
[StringLength(50, MinimumLength = 2)]
public string name { get; set; }
[Range(15, 100)]
public int age { get; set; }
I would like to implement the same validation rules on the clientside ie in my angular code. Is there an existing directive that can do this?