How to get line break within string interpolation in Angularjs

前端 未结 5 1880
萌比男神i
萌比男神i 2021-01-05 10:15

So I\'m trying to do something very simple and I\'m stuck. I have a String variable and within that variable I Wanna set line break so certain part of the text

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-05 11:17

    try like this

    $scope.myMsg = `Below is the result:
    Successful:1,
    Failed:2` // Use backtick

提交回复
热议问题