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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -