Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win-menu-command crashes when ng-repeat directive is used #82

Open
sondreb opened this issue Nov 15, 2015 · 2 comments
Open

win-menu-command crashes when ng-repeat directive is used #82

sondreb opened this issue Nov 15, 2015 · 2 comments

Comments

@sondreb
Copy link
Contributor

sondreb commented Nov 15, 2015

I'm unable to use ng-repeat on the win-menu-command, which is kind of ironic when the sample (README.md) says it's a good idea...

Exception:

image

Code:

<button id="menuAnchor">Show a menu!</button>
<win-menu anchor="'#menuAnchor'">
    <win-menu-command ng-repeat="(key, value) in settings.flickr.sortList" label="'Test'"></win-menu-command>
</win-menu>

    var sortList = {
        'date-posted-asc' : 'Date uploaded',
        'date-taken-asc': 'Date taken', 
        'interestingness-desc' : 'Interesting', 
        'relevance': 'Relevent'
    };

I also tested with a "item in items" style ng-repeat and an array with two elements of key and value, same error.

Is this a bug or am I doing this wrong?

@kevinLB
Copy link

kevinLB commented Nov 24, 2015

I have the same problem to create a dynamic AppBar...
Is it possible to add new commands in the html content (with angular binding like above on @sondreb's code) or directly in the controller ?
Thank's for reading :)

@yesitspeter
Copy link

yesitspeter commented Jul 19, 2016

@humale What is the status of this issue? This was reported on April 25th. There has been no activity and I am experiencing the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants