首页 > 代码库 > angularjs 的一个图片列表指令
angularjs 的一个图片列表指令
这是一个基于angulsrjs 和bootstrap样式的图片列表指令
js部分代码如下
var app=angular.module("test",["bane/image/showgrid.html"]) .directive("baneImggrid",function(){ return { restrict:'EA', transclude: true, replace: false, //templateUrl: "template/image(1).html", templateUrl:"bane/image/showgrid.html", scope:{ baneItems:'=', smSrc:'@', orgSrc:'@', radioText:'@', radioValue:'@', radioShow:'=', deleteShow:'=', selectItem:'=', itemDelete:'=', //beforeDelete:'&' }, link:function(scope, element, attrs,contr){ scope.selectItem={"cover":""}; scope.orgSrc=http://www.mamicode.com/(scope.orgSrc?scope.orgSrc:scope.smSrc);>
demo下载angularjs 的一个图片列表指令
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。