html to display content, but I found that the te...">

How to make a selection of text in ionic?

I am using <div ng-bind-html="data.html"></div>

html to display content, but I found that the text in this div cannot be selected.

How can I select the text?

I cannot select in chrome and ios device

+3


source to share


1 answer


I faced a similar situation. where one of our apps needs to work with the chrome browser browser etc, since the text-text of the Ionic app has been disabled by default. here's what i did.

body {
 -webkit-user-select: auto !important;
.scroll {
    -webkit-user-select: inherit;
  }
}

      



May be helpful to someone.

+5


source







All Articles