Skip to content

nested ui-view doesn't work anymore inside KendoUI Splitter after update from 0.2.7 to 0.2.8 #775

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

Closed
snekbaev opened this issue Jan 17, 2014 · 8 comments

Comments

@snekbaev
Copy link

Hi,

I'm loading a ui-view which in turn has another ui-view:

I was targeting it on the same level via:
'[email protected]':

everything was working with 0.2.7 version, but doesn't anymore with 0.2.8. I reverted back to older version meanwhile.

Thank you!

@nateabele
Copy link
Contributor

Plunkr?

@snekbaev
Copy link
Author

Ok, further investigation indicated that it is now rendered but if not in KendoUI Splitter:

<div class="row" ng-controller="WorkspaceCtrl">
    <div ui-view="workspaceEditorContent"></div>
    <div kendo-splitter k-options="splitterOptions">
        <div class="left-pane">
            <div class="pane-content">
                <div ng-controller="TreeViewCtrl">
                    <div kendo-tree-view="contentEntitiesTree" k-options="contentEntitiesTreeOptions"></div>
                </div>
            </div>
        </div>
        <div class="center-pane">
            <div class="pane-content">
                @* editors specific to selected content entity will be loaded here *@
                <div ui-view="workspaceEditorContent"></div>
            </div>
        </div>
    </div>
</div>

I copied <div ui-view="workspaceEditorContent"></div> above the splitter and it is rendered correctly, but the one in the splitter is not working anymore, but it was with 0.2.7, could you please clarify what has changed in that regards so I can fix this?
Thank you!

P.S.: I will try to get a demo plunkr soon

@nateabele
Copy link
Contributor

It seems likely that this is related to #774.

@JohnBerg60
Copy link

Somehow ui.router does not play wel with angular kendo ui. I tried versions 0.2.7 & 0.2.8 with and without angular-kendo-ui. Without angular-kendo-ui al seems to work as expected. With angular-kendo-ui there is a problem with creating the scope for the controller. Instead of a parent->child relation the transcluded scope and the controller scope are siblings. It is difficult to setup a plunker that shows the problem.

I try to investigate further.

@snekbaev
Copy link
Author

Here, I made my first plunker ever - http://plnkr.co/LhjD0oQxyelxqTZsHOgR :)

Run it and after the click you will see: THIS TEXT MUST APPEAR TWICE 2 times - this is what I expect and it was like that before 0.2.8. Then edit index.html file: replace 0.2.7 ui-router with 0.2.8 (everything is there, just copy-paste). Run and click - the aforementioned text will appear once and this is my current problem.
Thank you!

@Oceanswave
Copy link

I was able to fix this in 0.2.7 by removing the directive's priority: 1000, however, this seems to be removed in 0.2.8.

@snekbaev
Copy link
Author

@SleepyHeaD well, at the moment I'm using 0.2.7 unmodified, it seems to work for me by default, though not 0.2.8, waiting for the fix :)

@timkindberg
Copy link
Contributor

Dupe of #866

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

No branches or pull requests

5 participants