I'm trying to add Angular Material inputs based on a number the user enters.
var inputArray = [];
for(var i=0; i<vm.boxQty; i++)
{
inputArray.push("<md-input-container><input type='text' data-ng-model='vm.trackingNumber'></md-input-container>");
}
angular.element('.box-inputs')
.html(inputArray);
But once the inputs are added, they don't get the material styling.
https://i.sstatic.net/Dw3ZZ.jpg
How can I add these inputs and get the styling? Thanks
$compileservice, or take another approach with anng-repeat