这是我的js代码
define (function (require) {
...
const hs = require('highslide');
...
app.directive('anaResult',['$document', function($document) {
return {
link: function(scope, element) {
hs.htmlExpand(scope, { contentId: 'highslide-html' });
}
}
}]);
...})
然后是html
<a anaResult>result</a>
<div class="highslide-maincontent">
something must be show
</div>
但是当我点击href result
时,高幻灯片div没有显示,是否有关于如何在AngularJS中使用高幻灯片的演示代码?