【发布时间】:2016-08-17 09:45:46
【问题描述】:
我可以在 html 中使用 magnificPopup 指令作为属性。它可以在浏览器中运行,但不能在移动设备中运行。
angular.module('App')
.directive('magnificPopup', function () {
'use strict';
return {
restrict: 'A',
link: function (scope, element, attrs) {
element.magnificPopup({
type: 'image'
});
}
};
});
【问题讨论】:
标签: html angularjs magnific-popup