Savanaly
Savanaly

Reputation: 347

Ng-submitted not being applied to form

According to the docs, forms in angular should apply a "ng-submitted" class when submitted, but I'm not seeing that. In the linked jsfiddle below you can see that even after the submitted button is clicked, the class is not applied.

The docs

The jsfiddle

edit: I included some code here even though it is pointless, check out the jsfiddle above.

//this is the code i have in the jsfiddle, check it out there.
<form>
    <button type="submit">
</form>

What am I misunderstanding?

Upvotes: 0

Views: 1098

Answers (1)

m.brand
m.brand

Reputation: 658

Check the docs again. ng-submitted has been added in somewhere in angular 1.3. Your fiddle uses like 1.0.1.

Edit:

See

https://github.com/angular/angular.js/pull/8056 https://github.com/angular/angular.js/commit/108a69be17df5884d026c57b2be3235c576250fe

Upvotes: 2

Related Questions