Open SSchaaf opened 9 years ago
Same here. The components have ng-pattern=\"/{{ field.schema.validation.pattern }}/\", and when the pattern is not present it resolves to ng-pattern="//" which AngularJS then complains about.
I sent a pull request https://github.com/McNull/angular-form-gen/pull/3 that supports Angular v1.3
Thank you for this!
I will look at it when I've got some time.
@SSchaaf thanks for creating the v1.3.x support! I really needed this =)
Great project btw @McNull
It´s not working with angular 1.3.6. I got this error with chrome inspector :
Error: [$parse:syntax] Syntax Error: Token '/' not a primary expression at column 1 of the expression [//] starting at [//]. http://errors.angularjs.org/1.3.6/$parse/syntax?p0=%2F&p1=not%20a%20primary%20expression&p2=1&p3=%2F%2F&p4=%2F%2F at http://localhost:3000/bower_components/angular/angular.js:63:12 at Parser.throwError (http://localhost:3000/bower_components/angular/angular.js:11964:11) at Parser.primary (http://localhost:3000/bower_components/angular/angular.js:11942:12) at Parser.unary (http://localhost:3000/bower_components/angular/angular.js:12224:19) at Parser.multiplicative (http://localhost:3000/bower_components/angular/angular.js:12207:21) at Parser.additive (http://localhost:3000/bower_components/angular/angular.js:12198:21) at Parser.relational (http://localhost:3000/bower_components/angular/angular.js:12189:21) at Parser.equality (http://localhost:3000/bower_components/angular/angular.js:12180:21) at Parser.logicalAND (http://localhost:3000/bower_components/angular/angular.js:12171:21) at Parser.logicalOR (http://localhost:3000/bower_components/angular/angular.js:12162:21)