namespace yes { angular.module('app') .controller("app.default.selector", function ($scope: any, dialog: IDialog, helper: IHelper, utils: IUtils) { $scope.openDialog = function () { dialog.open({ template: "plugins/$default/pages/selector.tpl.html", className: "ngdialog-lg", controller: ['$scope', (scope) => { helper.setClassicalScope(scope, { commonApiUrl: "$default/helper", mock: { config: "plugins/$default/data/helper.config.json", list: "plugins/$default/data/helper.list.json", detail: "plugins/$default/data/helper.detail.json" }, apiConfigUrl: "plugins/$default/data/helper.config.json", detailTemplateUrl: 'plugins/$default/pages/helper.detail.html', disableDblClick: true }); scope.init(); }] }); } }); }