Why google custom search is not showing in an ionic project?

I am want to use Google Custom Search in an Ionic project which is built using Angular . But when I paste code according to the documentation but the google custom search is not showing. I have pasted the script in the head tag. And paste code <div class="gcse-searchbox"></div> in an Ionic page but nothing is showing. Please help me solve this problem.