winjs / angular-winjs

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

<win-split-view-command> Does not render icon or label #61

Closed realgoodappz closed 9 years ago

realgoodappz commented 9 years ago

The code below does not seem to render the winSplitViewCommand control to show the icon and label.This is with winjs 4.2, angular-winjs 4.0, and angularjs 1.4.4, and on Microsoft Edge and Google Chrome.

The other controls render correctly.

<div ng-controller="layoutController as layout" id="layout-wrapper">
    <win-split-view-pane-toggle split-view="layout.splitViewElement"></win-split-view-pane-toggle>
    <win-split-view id="splitView">
        <win-split-view-pane>
            SplitView Navigation Pane
            <win-split-view-command label="'Home'" icon="'home'" on-invoked="goToHome()"></win-split-view-command>
            <win-split-view-command label="'Settings'" icon="'settings'" on-invoked="goToSettings()"></win-split-view-command>
        </win-split-view-pane>
        <win-split-view-content>SplitView Content Area</win-split-view-content>
    </win-split-view>
</div>

The output for the control just ends up being:

<win-split-view-command label="'Home'" icon="'home'" on-invoked="goToHome()" class="ng-scope"></win-split-view-command>
ghost commented 9 years ago

I too had the issue when i was using winjs 4.0 I replaced winjs to version 4.3, now it works perfectly fine.