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

Not working for Dynamic Data #2

Open
naveen305 opened this issue Nov 27, 2015 · 3 comments
Open

Not working for Dynamic Data #2

naveen305 opened this issue Nov 27, 2015 · 3 comments

Comments

@naveen305
Copy link

Static data it is working, when from controller it is not working

@OrganicCat
Copy link

On line 77 of the code, they have elem.append(markup);

Change this to elem.html(markup)

So that the content is replaced, not appended, when dynamic (or static) content is used. This isn't widely tested, but works fine for my scenarios.

@naveen305
Copy link
Author

Thanks for your reply,
elem.html also not working

@OrganicCat
Copy link

If you define what "not working" means, I may be able to troubleshoot further. My problem was that

elem.append(markup);

Was literally appending the dynamic data instead of replacing it, so I was getting duplicate and stale data. Perhaps your problem is different. Also, if you're using grunt to compile this stuff, make sure this library gets recompiled.

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

2 participants