angularjs - Angular prettyPhoto $scope -
i have problem acessing $scope in prettyphoto inline opened html. simple html in have ng-click.
<div id="inputmask" class="gridsystem modalwindow responsive" style="display:none;"> ... </div>
and here js creating prettyphoto modal window:
$.prettyphoto.open('#inputmask','','');
prettyphono creates special div, cannot connect controller and/or $scope.
does have idea how should made?
tnx
angularjs not work dynamically generated content prettyphoto plugin generates, since angular needs compile html , setup necessary watches.
you need wrap jquery plugin directive , manually update scope elements based on events handlers available plugin.
Comments
Post a Comment