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

scope variable isnot recognized as valid text #48

Open
thunder312 opened this issue Mar 24, 2017 · 3 comments
Open

scope variable isnot recognized as valid text #48

thunder312 opened this issue Mar 24, 2017 · 3 comments

Comments

@thunder312
Copy link

Directive:
scope.qrData = 'http://' + scope.assignedIp + ':8002/#/instrumentState';

"scope.assignedIP" is the current assigned IP of the PC.

HTML:
<qr size="100" text="qrData"></qr>

Error:
Error: The text attribute is required.
at Object.postlink [as link]

Findings so far:
I have tried several other scope variables on this page and none of these is working.
A simple String is working. (<qr size="50" text="'simpleString'"></qr>).
So I guess, I installed the package correctly.

@nsdonev
Copy link

nsdonev commented Jun 16, 2017

@thunder312 I experience the same issue, have you found by any chance what is causing this nasty issue ?
Is it possible it is from angular version ? I am using angular 1.5.x
Thanks

@gurdeep2711
Copy link

Set ng-init=" qrData = ' ' " before
<qr size="100" text="qrData"></qr>

this will set ngmodel and will not throw the error.

@BoWang816
Copy link

@gurdeep2711
I use it,
Set ng-init=" qrData = ' ' " before

and it works, thank you

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