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

ng-html-compile issues with rendering HTML #2

Open
emanresuwenaretne opened this issue Oct 21, 2021 · 0 comments
Open

ng-html-compile issues with rendering HTML #2

emanresuwenaretne opened this issue Oct 21, 2021 · 0 comments

Comments

@emanresuwenaretne
Copy link

I am trying to do the following - using AngularJS and HTML in Visual Studio 2019.

1)In HTML page - DIV - with ID = Test. Assign ng-html-compile="htmlTemplate" to the DIV.
2)Save the DIV to SQLServerDatabase. By using

var obj = document.getElementById('Test').innerHTML; // Saves to the database.

3)Retrieve obj saved to the database and assign its value to htmlTemplate

4)Doesn't seem to work correctly. In fact for other DIVs present inside Test - I see elements rendered twice. See below for more details - What could be the cause of the issues?

image

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

1 participant