Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

Description for Nested Menus has an error... #42

Closed lucaskatayama closed 8 years ago

lucaskatayama commented 8 years ago

Hi

I think this

$scope.menuOptions = [
    ['Parent Item 1', function ($itemScope) {
        // Code
    },  ['Child Item 1', function ($itemScope) {
            // Code
        }],
        ['Child Item 2', function ($itemScope) {
            // Code
        }]
    ]
];

Should be this:


$scope.menuOptions = [
    ['Parent Item 1', function ($itemScope) {
        // Code
    }, [['Child Item 1', function ($itemScope) {
            // Code
        }],
        ['Child Item 2', function ($itemScope) {
            // Code
        }]]
    ]
];

With extras open and close brackets for parent's thid argument, right?

Templarian commented 8 years ago

Correct! Fixed.

Thanks! :smile: