Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular v 1.3.6 #2

Open
SSchaaf opened this issue Dec 11, 2014 · 4 comments
Open

Angular v 1.3.6 #2

SSchaaf opened this issue Dec 11, 2014 · 4 comments

Comments

@SSchaaf
Copy link

SSchaaf commented Dec 11, 2014

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) <textarea class="form-control ng-pristine ng-untouched ng-valid ng-scope" fg-field-input="" fg-placeholder="field.schema.placeholder" ng-model="form.data[field.schema.name]" id="{{ field.$_id }}" title="{{ field.schema.tooltip }}" tabindex="{{ tabIndex }}" ng-required="field.schema.validation.required" ng-minlength="{{ field.schema.validation.minlength }}" ng-maxlength="{{ field.schema.validation.maxlength }}" ng-pattern="/{{ field.schema.validation.pattern }}/">

@byronigoe
Copy link

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.

@SSchaaf
Copy link
Author

SSchaaf commented Dec 21, 2014

I sent a pull request #3 that supports Angular v1.3

@McNull
Copy link
Owner

McNull commented Dec 26, 2014

Thank you for this!

I will look at it when I've got some time.

@JoeyHoutenbos
Copy link

@SSchaaf thanks for creating the v1.3.x support! I really needed this =)

Great project btw @McNull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants