How do I add leading spaces into the options using Angular ng-options?
Static values (w
you can format the option text:
EDIT
If you want to generate the dynamically it is a little bit more complicated. Suppose you have a function in your controller that knows how many you want to add, then you can write this function like this:
$scope.addSpaces= function(color){
var count = 1;// put your logic here
var result = "";
for(var i=0; i
in your html it will be:
This works because we concatenate the unicode character for (e.g. ) in our string and not the entity, so there is nothing to escape for the element.text() function.