Skip to content

adding caller controller function in tour-step-content #149

Description

@anupbelambe

I am using the exact versions of the following:

  • Browser: [Chome|Firefox|IE|Safari] Version: 59.3071.1634.2
  • AngularJS: 1.5.5
  • Angular Bootstrap: x.x.x
  • Angular UI Tour: 0.8.2

I have installed this library via: (NPM, Bower, or downloaded package)
NPM

I have observed the following behavior:
While trying to set action button with action being controller function in tour-step-content, the controller action is not getting executed.

This is how I expected it to behave:
The controller function is called if any action is provided in the content.

Here is my tour config, and all related step configs:

<div layout="row" flex ui-tour="abc" ui-tour-placement="bottom-left">

<div layout="row" tour-step="profile" tour-step-title="Title text!" tour-step-content="Now you can edit !<md-button ng-click="controller.funcA()">click for details</md-button>" tour-step-placement="top-left" tour-step-order="0">

Additional notes/code:
In above case the step is shown correctly as expected but not able to get the controller function executed. This might be due to different scopes but is there any way to register callback which can be used in the step-content as additional action. Appreciate any workaround for the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions