UNPKG

cmsmon

Version:
13 lines (9 loc) 349 B
controller.$inject = ['$scope', 'cms']; function controller($scope, cms) { debugger; let {path, model} = $scope.formState; path = _.dropRight(path.split('\.')).join('.'); const Type = cms.data.types[_.get(model,path).BindType]; $scope.to.options = _.map(Type.columns, v => ({name: v, value: v})); } export default controller;