Making a doctor's website with Angular ui-router which switches partials through ui-sref. I need the ui-sref link to reload on the pages with the javascript widgets so they upload. Here is the view:
<a ui-sref="home">
and the state router in the js file:
.state('home', {
url: '/home',
templateUrl: 'Partials/partial-home.html'
})
I tried:
ui-sref-opts="{reload: true}"
in my ui-sref but it did not reload the widget. I tried other code I found here and that didn't help either. Here is the source code for anyone who wants to see: https://github.com/EBM26
<script type="text/javascript" src="https://www.healthtap.com/widget/askdoc.js" ></script><div id="htapWidgetAskdoc" data-doctor="26158967" data-just_answers="true" data-color="rgb(246, 252, 208)" class="col-xs-4"><span>Powered by</span> <a href="https://www.healthtap.com">HealthTap</a> <div id="HtInboundLinks"> With content from: <a href="https://www.healthtap.com/experts/26158967">Dr. Danny Benmoshe's Virtual Practice</a><br></div> </div>