Skip to content

Commit

Permalink
changed formly version, added menu editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrichardsmith committed Jul 1, 2015
1 parent 4af1e09 commit dde0b55
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"angular": "~1.3.15",
"angular-bootstrap": "~0.13.0",
"angular-formly-templates-bootstrap": "4.0.9",
"angular-formly": "6.6.0",
"angular-formly": "~6.8.2",
"angular-growl": "~0.4.0",
"angular-sanitize": "~1.3.15",
"angular-ui-sortable": "0.13.3",
Expand Down
19 changes: 19 additions & 0 deletions dist/mongolarMenuEditor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
mongolar.controller('MenuEditor', function ContentController($scope) {
$scope.AddNewChild = function(target) {
item = {
'title': '',
'url': '',
'menu_items': []
}
target.push(item);
}
$scope.Delete = function(index) {
$scope.$parent.$parent.$parent.parentmenu.splice(index, 1);
}
$scope.Log = function(target) {
console.log(target);
}
}
)


0 comments on commit dde0b55

Please sign in to comment.