angular
.module('app', ['wm.modal'])
.controller('AppController', function ($scope, $wmModal) {
$scope.open = function () {
$wmModal.open({
clickout: true,
controller: 'ModalController',
locals: {
$id: 1,
},
templateUrl: 'modal.html',
containerClass: $scope.containerClass,
}).result.then(function () {
console.log('ok')
}, function () {
console.log('not ok')