angular-server-form icon indicating copy to clipboard operation
angular-server-form copied to clipboard

Form URL instead of ACTION

Open risinglf opened this issue 9 years ago • 1 comments

Hi there,

why you use the custom "url" attribute of the form instead of the standard "action"?

Using the "action" attribute would allow this great directive to be used on Rails's form_for helper without the need to add "url" attribute manually.

What do you think?

risinglf avatar May 09 '15 15:05 risinglf

Ah, that makes a lot of sense. I probably just hadn't thought about it or angular might've had some problem with it, I'm not sure. It looks like angular docs are down right now so I can't confirm.

For backwards compat I'd like to keep url, but I'd be open to adding support for action, it can check both.

Sorry for the slow response. I'm a bit busy at the moment, but I'd totally be open to a PR; otherwise it might take me a while to get around to it.

cesarandreu avatar May 12 '15 03:05 cesarandreu