- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 10:28 AM - edited 09-30-2024 10:31 AM
Hi Team,
I am unable to find where the widget is calling from another widget.
widget 1:
HTML:
<div>
<!-- your widget template -->
<div class="banner">
<div class="title">
${Hello} {{::data.username}}
</div>
<ul>
<div ng-repeat="obj in data.ct track by $index">
<li title="{{obj.title}}" ng-if='obj.condition=="true"'><a href="#flag={{obj.label}}" ng-class="{'highlight':c.selected == obj.passing }" ng-click="selectnew(obj.passing)">{{ obj.label}}</a></li>
</div>
</ul>
<div class="search">
<widget id="search"></widget>
</div>
</div>
</div>
Client script:
<h1>hello</h1>
</div>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 11:00 AM - edited 09-30-2024 11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 10:38 AM
Hello @sainath3 ,
<widget id="search"></widget>
This line in the HTML is calling another widget.
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up 👍!
Thanks,
Alka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 10:58 AM
Thanks for the reply Alka.
My question is from my code how is widget2 calling from widget 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 11:00 AM - edited 09-30-2024 11:01 AM
Using $rootScope.$on