thetutlage / angular-validation-schema Goto Github PK
View Code? Open in Web Editor NEWschema based validation provider for https://github.com/huei90/angular-validation
schema based validation provider for https://github.com/huei90/angular-validation
Its not working with ng-include and directive with template
How can i use %field% in my code. I am unable to find any examples. Can anyone tell any way in which it has to be used. I am using globals for making my field required.
How about implement a demo page for it?
Hi @thetutlage We have recently big update the version of angular-validation.
Do you mind writing some test cases for your schema based code?
Hi,
Is it possible to consider changing configuration from provider to factory? In my particular use case, this change would allow the usage of Angular-gettext for translations. I tested the change and at least in my project it worked fine with following code:
var app = angular.module('validation.schema',[])
// Tiny provider to save and fetch schemas
.factory('validationSchema',function(){
var factory = {};
// List of schemas are stored here
var schemas = {};
// Adding schema to object
factory.set = function(name,hash){
schemas[name] = hash;
};
// fetching from object
factory.get = function(name){
return schemas[name];
}
// Exposing them here
return factory;
})
And configuration:
app.run(function (validationSchema, gettextCatalog) {
validationSchema.set("User", User(gettextCatalog));
});
watch this please!
http://embed.plnkr.co/65xVXEMgf46ylUAl1VWT/
i just edited your example, by adding the globals in the schema, but it's not working!
This is for client-side angular validation used.
How about using the same one for back-end side validation?
using the require
and window
to detect client and server.
'validate-on': 'submit'
any option for this? just submit?
thx ^_^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.