javascript - Using HTML within a JSON Object -
i'm working on faq type project using angularjs. have number of questions , answers need import page , thought idea use service/directive load content in dynamically json.
the text strings quite unwieldily (639+ characters) , overall hesitation have adding html json object format text (line breaks etc).
is pulling html json considered bad practice practice, , there better way solve this? i'd prefer avoid using multiple templates it's starting seem better approach.
thanks
if you're using angularjs , have build step, html2js turning html templates js, can concat'd , minified.
Comments
Post a Comment