Example:
var scope = {
thing: 'Monkey'
};
$interpolate("Awesome{{' ' + thing}}!")(scope);
^^^
I don't want to print a white space when thing is null or undefined.
Expectectations:
scope.thing == 'Monkey'
-> "Awesome Monkey!"
scope.thing == null
-> "Awesome!"
Is it possible to specify {{' ' + thing}} somehow to not print anything when thing is null or undefined?
EDIT:
Possible I need something like this {{ thing && (' ' + thing) }}, but I guess that with angular it should be possible to be done in more elegant way.
PS I'm new in Angular, so sometimes I develop a wheel :)