I have used below code but getting error
[jqLite:nosel] http://errors.angularjs.org/1.6.9/jqLite/nosel
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
<link rel="stylesheet" media="screen" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" />
<script type="text/javascript">
var app = angular.module('MyApp', [])
app.controller('MyController', function ($scope) {
$scope.OpenPopup = function () {
var element = angular.element('#MyPopup');
element.modal('show');
}
});
</script>
<div ng-app="MyApp" ng-controller="MyController">
<input type="button" class="btn btn-primary" value="Open Popup" ng-click="OpenPopup()" />
<!-- Modal Popup -->
<div id="MyPopup" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×</button>
<h4 class="modal-title">Greetings
</h4>
</div>
<div class="modal-body">
Welcome to ASPSnippets.com
</div>
<div class="modal-footer">
<input type="button" id="btnClosePopup" value="Close" class="btn btn-default" data-dismiss="modal" />
</div>
</div>
</div>
</div>
<!-- Modal Popup -->
</div>