Comments (3)
Currently there is not. You can see it being done here (so it'd be easy enough for you to manually remove in the short term)
https://github.com/AngularAgility/AngularAgility/blob/master/src/aa.formExtensions.js#L354
I was just thinking about it: maybe there should be some sort of "ngModelBehaviors" that allows people to tack on (or remove in your case) functionality related to fields. So by default it would include onSubmitAttempt functionality, blur functionality, dirty handling etc. but you could simply remove the key on the ngModelBehaviors object to disable it completely (or replace it with your own implementation). Thoughts?
from angularagility.
Cool, thanks for the link!
Yeah, I like the idea of being able to have behavior sets that come out of the box but can also be redefined if needed. I'm not familiar enough with the project to speak about actual implementation but I can see a further need given that I'd love to eventually use this with ionicframework which would have further functionality tweaks needed since it would be primarily on mobile.
It'd be neat if I could define default behavior maps in the config but still override those on a per input field basis if needed (sort of like validation partials). The only problem I see with allow the amount of flexibility that I'm thinking about is that it seems like keeping the markup simple might become an issue.
from angularagility.
The provider model might save the day again in your situation and keep the code very simple (or at least simple for everyone else without you having to change the source code of the library). One of my co-workers added this to allow for different sizes of bootstrap form fields:
https://github.com/AngularAgility/AngularAgility/blob/master/src/aa.formExtensions.js#L912
I think the behaviors will be a really nice and missing extensibility point that makes things more flexible from that angle too.
from angularagility.
Related Issues (20)
- Error messages are duplicated for input-boxes HOT 2
- Problem to notify error in Angular 1.3.16 HOT 2
- Navigate away $modal example? HOT 3
- difference between AngularAgility and AngularAgility.Net? HOT 1
- FormExternalConfiguration and hierarchical viewmodel HOT 4
- what happened to $resetChanged(function() { }); in 0.8.26 HOT 12
- Consider adding angular-agility to NPM? HOT 3
- There are some validation errors: - But none shown in ul HOT 4
- Navigate Away Strategy
- Validation message on two inputs with same name HOT 3
- Changelog Needed HOT 2
- Angular2 HOT 1
- Wrong error handling in aaAjaxInterceptor could create AJAX infinite look HOT 1
- $reset() in latest version (0.8.36) clears the form empty, ignoring previous values
- NavigateAway modal shows up on state change even though form doesn't change HOT 5
- Module not found error when trying to import angular-agility HOT 1
- Submitting twice when aa-submit-form is used with type="submit" HOT 1
- aaNotify not showing notification when directive is inside view of controller HOT 1
- Get label text in ajaxValidationErrorMappingStrategy HOT 2
- $clearErrors - (thisForm.$setUntouched || angular.noop)(); Lost context inside angularjs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularagility.