I am using Angular UT Bootstrap. If modally open, I would like to display true. If it does not open, I would like to display false. Is there any way to do this in HTML?
I tried using the following code, but this is wrong:
<code>myForm.$modalStack.opened={{myForm.$modalStack.opened}}</code>
Any thoughts on how to do this correctly?
Below is the relevant code that I use to run the modality:
HTML:
<button ng-click="myForm.agreement()">
Code in the controller:
.controller('MyFormCtrl',
function ($location, $stateParams, $modal, $scope, $http) {
var myForm = this;
myForm.agreement = agreement;
function agreement() {
$modal.open({
templateUrl: 'views/agreement.html'
})
});
source
share