Page 1 of 1

Show a appery variable {{item.text}} as html

Posted: Mon Aug 31, 2015 8:59 am
by Elvin Chu

Image
It didn't show as html only text


Show a appery variable {{item.text}} as html

Posted: Mon Aug 31, 2015 9:13 am
by Serhii Kulibaba

Hello Elvin,

Please use ng-bind attribute for that: https://docs.angularjs.org/api/ng/dir...


Show a appery variable {{item.text}} as html

Posted: Mon Aug 31, 2015 9:14 am
by Elvin Chu

Ok thanks


Show a appery variable {{item.text}} as html

Posted: Mon Aug 31, 2015 9:21 am
by Elvin Chu

Image
like this??


Show a appery variable {{item.text}} as html

Posted: Tue Sep 01, 2015 8:31 pm
by Illya Stepanov

Hi Elvin - Does it works for you?


Show a appery variable {{item.text}} as html

Posted: Sun Dec 25, 2016 8:15 pm
by Voltaire

Hello;
Am facing the same problem, what are we supposed to input next to the ng-bind-html is that {{xxx.xxx}} or what ?


Show a appery variable {{item.text}} as html

Posted: Mon Dec 26, 2016 9:23 pm
by Serhii Kulibaba

Hello,

No, please use there a $scope variable here, e.g.: pre$scope.myVariable = "google";/pre and use this variable in your ng-bind-html property: preng-bind-html=myVariable/pre


Show a appery variable {{item.text}} as html

Posted: Mon Dec 26, 2016 11:26 pm
by Voltaire

Thanks Sergiy, must mention that in ionic it is working without $scope !! as for bootstrap it is not. I will use it and test it. Thanks


Re: Show a appery variable {{item.text}} as html

Posted: Wed Mar 09, 2022 11:55 pm
by thegamechanger

I know this thread is 6 years old, but it is exactly what i am trying to accomplish.
Can someone spell out how i am supposed the get my calendar imbedd html (iframe) in my {{calendar}} variable to actually render? If i paste the html straight into the html element it renders fine, but if i use a variable it only shows the text.

I have tried applying a number of attributes with little luck.


Re: Show a appery variable {{item.text}} as html

Posted: Tue Mar 14, 2023 3:04 am
by rizarefaldi

what are we supposed to input next to the ng-bind-html?