Hi,
I have trouble with angular events such as ng-click when using scheduler groupHeaderTemplate and eventTemplate.
The ng-click event is not fired.
Samples:
//Loading templates
this
.groupHeaderTemplate = <string>$templateCache.get(SchedulerPageController.groupHeaderTemplatePath);
this
.eventTemplate = <string>$templateCache.get(SchedulerPageController.eventTemplatePath);
let options: kendo.ui.SchedulerOptions = kendo.ui.Scheduler.fn.options;
options.groupHeaderTemplate = kendo.template(
this
.groupHeaderTemplate);
options.eventTemplate = kendo.template(
this
.eventTemplate);
Group Header template
<
div
class
=
"row"
k-template>
<
div
class
=
"col-sm-7"
>
<
span
><
strong
style
=
"color: #=color#"
>#=text#</
strong
></
span
>
</
div
>
<
div
class
=
"col-sm-4 text-right"
>
<
button
class
=
"btn btn-danger"
ng-click
=
"alert('test')"
><
i
class
=
"fa fa-times"
></
i
></
button
>
</
div
>
</
div
>
Event template
<
div
class
=
"movie-template"
>
<
img
src
=
"#= image #"
>
<
p
>
#: kendo.toString(start, "hh:mm") # - #: kendo.toString(end, "hh:mm") #
</
p
>
<
h3
>#: title #</
h3
>
<
a
href
=
"#= imdb #"
ng-click
=
"console.log('test')"
>Movie in IMDB</
a
>
</
div
>