UNPKG
cmsmon
Version:
latest (1.0.0)
1.0.0
github.com/anhoev/cms
anhoev/cms
cmsmon
/
frontend
/
components
/
formly
/
select-type.controller.js
8 lines
(5 loc)
•
186 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
controller.
$inject
= [
'$scope'
,
'cms'
];
function
controller
(
$scope, cms
) { $scope.
to
.
options
= _.
map
(cms.
data
.
types
,
(
v, k
) =>
({
name
: k,
value
: k})); }
export
default
controller;