Question: how to use $uibmodal in angularjs?
Answer: To achieve this you need to include the bootstrap module as a dependency and add it to your application as shown below.
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.js"></script>