In directive, we have set $scope.checkValue = true, and the same scope is passed to ngstrap modal dialog.
below is the code from directive link function which is called on button click and popup the dialog:
return {
        templateUrl: "../Views/userSubscriptionView.html",
        restrict: 'E',
        scope: {},
        link: function ($scope, element, attributes) {
$scope.checkValue = false; //this is bind to checkbox model but not updating on check/uncheck.
    function DoOpenDialog()
    {
       //other code
        var myOtherModal = $modal({ scope: $scope, templateUrl: "../Views/SubscribePopup.html", show: false , persist:false});
                                myOtherModal.$promise.then(myOtherModal.show);
    }
Below is the code from dialog:
<input type="checkbox" ng-model="checkValue"/>
{{checkValue}}
The problem is: when I check the checkbox to true or false, model 'checkValue' is not updating. I need to change the state of other control based on the checkbox check state.
Thanks
 
    