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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -