I want to use bootstrap pop window for some user confirmation but i got stuck initially here by using bootstrap with angularjs , Any idea what is implemented wrong below to have bootstrap modal window or any better approach to use bootstrap modal window with angularjs ? I do not see any error in console.
app.js
angular.module('App', [
'ui.router',
'ui.bootstrap']).config(function ($stateProvider, $httpProvider, $urlRouterProvider) {
//config code here ..
});
ctrl.js
angular.module('App').controller('modalController',function($scope,$uibModal){
$scope.openModal = function () {
console.log('opening pop up');
var modalInstance = $uibModal.open({
templateUrl: 'web/global/modal.html',
});
}
});
home.html
<button class="btn btn-warning" ng-click="openModal()">Simple Popup</button>
'web/global/modal.html'?