How to get $scope.myValue = " " to display as blank space?

1,874 views
Skip to first unread message

Michael Remijan

unread,
Mar 17, 2013, 2:53:49 PM3/17/13
to ang...@googlegroups.com
I basically have in my controller the value of the scope variable setting to " " but angular displays this literally on the page as " ".  So it's clear angular is doing some special character parsing here.  Is there a way to prevent this and have the HTML render with an empty space instead of the " " string?

Dave Merrill

unread,
Mar 17, 2013, 9:19:15 PM3/17/13
to ang...@googlegroups.com
Look into ngBindHtmlUnsafe: http://docs.angularjs.org/api/ng.directive:

Dave Merrill
Reply all
Reply to author
Forward
0 new messages