I have the following code...
<div> {{line.tab}} </div>
This prints out the number of tabs I want (1, 2, 3) and works fine. Now I need to know how to print the tab char (\t) as many times. I would prefer not to use the controller.
In other word line.tab can be 1, 2, or 3 if it is 1 it should have 0 tabs 2 should have 1, etc.
The only way I have been able to accomplish this so far is using the controller like this (this uses 4 spaces instead of a tab but same idea)...
span(ng-repeat="i in ctrl.getNumber(line.tab) track by $index")
span {{line.n.properties.indicator}}
span {{line.n.properties.e}}
span {{line.n.properties.value}}
controller : function(){
this.getNumber = function(num) {
return new Array(num-1);
}
}
I was hoping to do this without having to use the controller function and without multiple spans.