Hi I would like to us if there you can point me to a correct sample code for Angularjs UI Bootstrap Pagination to customize the template?
I tried searching google and here in stackoverflow but I cannot find any correct example or explanation on how to use the template-url for pagination for this function component.
https://angular-ui.github.io/bootstrap/#/pagination
I want to change the cache template "template/pagination/pagination.html" to something like this one
<script type="text/ng-template" id="custompagination.html">
code here...
</script>
but it gave me an errors. If you have sample or tips that I can read online, please let me know.
Thanks,
You should just be able to define your custom template in the HTML as follows:
and some CSS to style (if required):
You can override a template using the script directive. Because this has the same ID as the default Bootstrap pagination template, it will override it. See here for a demo.