javascript - angularStrap: open directive from modal and pass value from the scope to the directive scope -
i using strapangular modal , having problems in passing scope directive. search answer on internet , didn't found.
$scope.showmodal = function(index) { var scope = $scope.$new({productitem: "dddddd"}); var mymodal = $modal({ templateurl: "<div modal-view product='productitem' class='modal' tabindex='-1' role='dialog'></div>", persist: true, scope: scope, show: false, html: true, animation: 'am-fade-and-scale', placement: 'center' }); mymodal.$promise.then(mymodal.show); };
the directive loads '$scope.product' undefined.
Comments
Post a Comment