弹出ng-dialog时 出现此错误。这是弹出对话框的函数:
var dialog = ngDialog.open({
template: 'public/module/fileManagement/filePopUp.tpl.html',
scope: $scope,
controller : 'FileController',
$event: $event
});
这是控制器的代码:
var fileModule = angular.module('fileModule', []);
fileModule.controller('FileController', function($scope, ngDialog){
var img = {name:'a',description:'a',type:'d'};
$scope.init = function () {
$scope.img = img;
}
$scope.init();});
弹窗中的结果如下图所示:
nom: {{img.name}}
备注: