在jsfiddle中加载角度ngDragDrop插件

时间:2016-02-02 10:17:09

标签: angularjs jsfiddle

如果我通过(angular drag and drop)添加外部资源https://rawgit.com/codef0rmer/angular-dragdrop/master/src/angular-dragdrop.min.js,默认情况下我会errors in the console。我的错是什么?

var app = angular.module("treeRepeatApp", ['sf.treeRepeat','ngDragDrop']);

1 个答案:

答案 0 :(得分:0)

我在jsfiddle的javascript设置中添加了角度库来解决问题。

var app = angular.module("treeRepeatApp", ['sf.treeRepeat', 'ngDragDrop']);

enter image description here