Hi
I'm currently trying to learn all of this so if I'm being stupid please forgive me!
I'm using the ui-router from Angular and have a nested state which I would like to display inside a Window (consisting of a html view and it's related controller). Unfortunately I don't see anything in the window. If I move the ui-view div to outside of the window div, everything is displayed correctly.
I'm guessing it's something to do with how Kendo appends the Window to the end of the document body which means my ui-view is no longer in the same controller scope?
Here's my routing script:
(I moved to named views thinking that this may solve the issue. Originally I was just using an empty ui-view attribute)
and the view code:
Please can you help me to get this working (if possible) or suggest a better way of using the Window with Angular?
Thanks
Keith
I'm currently trying to learn all of this so if I'm being stupid please forgive me!
I'm using the ui-router from Angular and have a nested state which I would like to display inside a Window (consisting of a html view and it's related controller). Unfortunately I don't see anything in the window. If I move the ui-view div to outside of the window div, everything is displayed correctly.
I'm guessing it's something to do with how Kendo appends the Window to the end of the document body which means my ui-view is no longer in the same controller scope?
Here's my routing script:
.state(
"matches"
, {
url:
"/matches"
,
templateUrl:
"Views/matches.html"
})
.state(
"matches.fixture"
, {
params: [
'FixtureID'
],
views: {
'fixture'
: {
templateUrl:
'Views/matches.fixture.html'
,
}
}
})
(I moved to named views thinking that this may solve the issue. Originally I was just using an empty ui-view attribute)
and the view code:
<!-- Kendo Window which receives the view loaded by the state change-->
<
div
kendo-window
=
"winMatch"
k-title
=
"'Fixture Detail'"
k-width
=
"600"
k-height
=
"200"
k-visible
=
"false"
k-modal
=
"true"
>
<
div
ui-view
=
"fixture"
>
</
div
>
</
div
>
Please can you help me to get this working (if possible) or suggest a better way of using the Window with Angular?
Thanks
Keith