This is probably stupid simple, but I can't figure it out.
I am building a string in javascript
var template = '<div class="big-long-string-here">';
Now that works fine, but say I wanted to use ng-class with this div.
var template = '<div class="big-long-string-here" ng-class="{'open' : navCollapsed}">
Now, I'm escaping the string to place my class name, open in the string.
How would I pass this properly so it's rendered correctly in the DOM?
opena variable whose value is supposed to be substituted into the string?