是否可以从Angular服务返回html?

时间:2017-05-09 13:52:33

标签: javascript html css angularjs

现在我有一个返回长字符串的服务。然后,该字符串将在其中一个模板中的markdown指令(wiz-markdown)中呈现。

我是否还要在服务返回的字符串中包含样式/标记?

`return ("Hey "+name+"!  \r\n\n" +
"Words words Words words Words words Words words Words words  "+
"Words words Words words Words words Words words Words words "+
"Words words Words words Words words Words words , "+
"Words words Words words Words words Words words  "+ 
"Words words Words words .\r\n\n")`

0 个答案:

没有答案