Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

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

Image
It didn't show as html only text

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Elvin,

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

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

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

Ok thanks

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

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

Image
like this??

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Hi Elvin - Does it works for you?

Voltaire
Posts: 0
Joined: Thu Apr 09, 2015 8:48 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Voltaire
Posts: 0
Joined: Thu Apr 09, 2015 8:48 pm

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

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

thegamechanger
Posts: 2
Joined: Tue Feb 22, 2022 5:59 pm

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

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.

rizarefaldi
Posts: 2
Joined: Fri Jun 18, 2021 3:27 pm

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

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

Return to “Issues”