You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 17, 2022. It is now read-only.
First of all, thanks for the great plugin. I'm trying to apply your plugin with my project for a few hours and having some problems which is when the ng-* attributes got updated inside a ng-click, your plugin always takes old values of the ng-* attributes. For example,
$scope.foo=function(){$scope.IntroOptions={steps: [{element: document.querySelector('#step1'),intro: "This is the first tooltip."},{element: document.querySelectorAll('#step2')[0],intro: "<strong>You</strong> can also <em>include</em> HTML",position: 'right'}],showStepNumbers: false,showBullets: false,exitOnOverlayClick: true,exitOnEsc: true,nextLabel: '<strong>NEXT!</strong>',prevLabel: '<span style="color:green">Previous</span>',skipLabel: 'Exit',doneLabel: 'Thanks'};$scope.CallMe();// At this point, your scope.IntroOptions, inside the link function, will be undefined};
but now we've changed how the directive works, and i don't think it's necessary do that change anymore.
because, now we're using a service to give freedom to developers so they change the behavior as they need, and you may update the intro injecting the ngintroService.
First of all, thanks for the great plugin. I'm trying to apply your plugin with my project for a few hours and having some problems which is when the
ng-*
attributes got updated inside ang-click
, your plugin always takes old values of theng-*
attributes. For example,HTML:
Controller:
Please see this problem in action on this Plunkr.
IMHO, I think that you should apply a
$watch
in all these attributes, for example:The text was updated successfully, but these errors were encountered: