我使用LightGallery显示用户图片。如何在角度2中使用LightGallery?
发布于 2016-08-05 14:48:59
示例:
@Directive({
selector: "[light-gallery]"
})
export class LightGallery{
constructor(el: ElementRef) {
jQuery(el.nativeElement).lightGallery();
}
}然后在你的角度2组件中使用上面的指令。
https://stackoverflow.com/questions/38791123
复制相似问题