I was wondering if there is a way in knockout to create dom items, similar to how the foreach binding works, using an observable with only an integer?
eg
var viewModel = function(){
    this.item = ko.observableArray(["1","2","3"]);
    }
this will create 3 dom elements when using foreach binding. Where I would like to see the following produce three dom items.
 var viewModel = function(){
        this.item = ko.observable(3);
        }
one addition is that the end result needs to be dynamic so if the value changes the dom items would too.
 
     
    