-
Notifications
You must be signed in to change notification settings - Fork 76
Can we use this for Angular5 #173
Comments
I have used this module in AngularJS and it works awesome and I have used more than 10 projects. I have now requirement for Angular5 implementation so I was think to use this module. What is the best way to use it? Alternatively I'm thinking to go ng2-validation package. But I love this module. |
@saheel-ahmed I haven't got around to porting this to angular 5 yet. However, it is pretty easy to do with a directive and using the mat-error element from angular material. Basic code is below. If I get some time I might try and port this over. Contribution are welcome!
You would then use it like this:
I hope this helps Thanks, Jon |
Awesome 👍 Thank you, Jon. As I was using Bootstrap 4 with Angular 5, and this "inputValidationDecorator " concept should work. |
Inspired by your AngularJS version and using the above code as a starting point I created an couple of Angular directives that work well together to standardise and simplify form validation. They are built to work in the ASP.NET Zero Framework but could easily be adapted for general use. You'd need to implement the localizationservice yourself as it is something that's built into the framework. |
No description provided.
The text was updated successfully, but these errors were encountered: