Create button dynamicly

Hi,i m new ionic and
i want to take the number of my buttons
İf my textbox=5 and i have 5 button
And if Text box = 50 have 50 button my screen . How can do this
Thanks for helps