ngx-errors icon indicating copy to clipboard operation
ngx-errors copied to clipboard

feature: support form errors (see issue #15)

Open bkinsey808 opened this issue 7 years ago • 7 comments

What are you adding/fixing?

I love the syntax of ngxErrors so much, that I wanted to use it not just for form control errors, but for form errors itself. See issue #15

Have you added tests for your changes?

I'm sorry, I did not. But the existing tests still passed.

Will this need documentation changes?

Yes, I imagine this feature is something ppl would want to know about.

Does this introduce a breaking change?

I don't think so. As far as I can tell, all existing functionality still remains.

Other information This code is a bit ugly, not super DRY. I sort of intended it as a proof of concept. It could be cleaned up and refactored, maybe we need a concept of a single object that can be either a form control or a form group. I'm especially displeased with having to call detectChanges() but I haven't found a way around it for OnPush change detection strategy. If anybody knows how to avoid it, pls let me know, I want to learn.

Thanks @toddmotto for a great project!

bkinsey808 avatar Apr 30 '17 08:04 bkinsey808

@toddmotto can you check this PR?

listepo avatar May 12 '17 16:05 listepo

We'll get this baked into a future addition of ngxErrors - planning to enhance some of the internals and there's a few things in here which work but what I'd like to do is introduce this feature once we've re-shapen the internals. This will make things a little smoother as there's a few hacks in here to get things to work - we'll add :)

toddmotto avatar May 15 '17 19:05 toddmotto

@toddmotto thanks

listepo avatar May 16 '17 12:05 listepo

Also looking forward to this feature.

DmitryEfimenko avatar May 27 '17 21:05 DmitryEfimenko

Hello @toddmotto would love to know if you've got a timeline for this?

picosam avatar Sep 02 '17 10:09 picosam

@toddmotto any news?

listepo-alterpost avatar Sep 07 '17 09:09 listepo-alterpost

this looks interesting!

JustinElst avatar Jan 23 '18 10:01 JustinElst