sending variables from one widget to next one and then to table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 04:32 AM
i have a feedback widget, if the user clicks on like/dislike it opens a new widget to collect feedback. i want to show other message in case of like than dislike. and want to send like/dislike from buttons in first widgetin addition to the feedback to table.
i have used $rootScope.$on('feedback', function(event, data)
in second widget to get the variables from last widget. but the problem is I have correct value inside $rootScope.$on{c.test}
but c.test does is undefind outside {} in the rest of code.
and first time that i refresh the page my button doesnt send the like(true/false) to the second widget. but if i press 2 times it will work fine.
anyone has any idea?
I have already used 2 days on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 10:41 AM