winjs / angular-winjs

Project to smooth the AngularJS/WinJS interaction
Other
126 stars 46 forks source link

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

Open sondreb opened 8 years ago

sondreb commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

@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.