I am currently facing an issue with my app while using DayPilot Scheduler.
home.html:
<div class="container-fluid">
<daypilot-scheduler id="scheduler" daypilot-config="schedulerConfig" daypilot-events="events"></daypilot-scheduler>
</div>
When accessing daypilot scheduler in my controller, I use the following code:
$scope.scheduler;
It works perfectly fine when the daypilot directive is directly within home.html as shown above. However, it returns undefined when I include daypilot using ng-include:
<div class="container-fluid">
<div ng-include src="'partials/partial1.html'"></div>
</div>
partial1.html:
<section>
<daypilot-scheduler id="scheduler" daypilot-config="schedulerConfig" daypilot-events="events"></daypilot-scheduler>
</section>
When included with ng-include, $scope.scheduler returns undefined. The scheduler is placed under $$childTail as $$childTail.scheduler.
I am trying to figure out what I am doing wrong and how I can access $$childTail. Any suggestions?