Unexpected outcomes can occur when utilizing angular-tour across various views

Currently, I am attempting to utilize the angular-tour plugin to provide a brief tour of a website's functionality. My goal is to have tooltips appear on each icon located in the horizontal navbar. However, despite including the necessary scripts and components in the index.html file, only text is rendering which is also getting cut off by the main view. How can this issue be resolved?

I have ensured that angular-tour is included in the angular.module as well. Any assistance would be greatly appreciated. Additionally, I have attached a screenshot showcasing the current state (plain text "Highlighted"). Before making any modifications, I am simply trying to implement the example from into my application. View the screenshot here: https://i.sstatic.net/wrOAn.png

index.html:

<!DOCTYPE html>
<html lang="en">
<head>

  <title>Scrummage</title>

  <link rel="stylesheet" href="../bower_components/normalize.css/normalize.css">
  <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet" type="text/css"/>
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <link rel="stylesheet" href="./css/main.css">
  <link href="../bower_components/angular-tour/dist/angular-tour.css" rel="stylesheet" type="text/css"/>

  <script src="../bower_components/angular/angular.js"></script>
  <script src="../bower_components/angular-route/angular-route.js"></script>
  <script src="../bower_components/angular-ui-router/release/angular-ui-router.js"></script>
  <script src="../bower_components/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js"></script>
  <script src="../bower_components/angular-bootstrap/ui-bootstrap.js"></script>
  <script src="../bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
  <script src="../bower_components/angular-ui-modal/angular-ui-modal.js"></script>
  <script src="../bower_components/angular-charts/dist/angular-charts.js"></script>
  <script src="../bower_components/d3/d3.js"></script>
  <script src="./js/app.js"></script>
  <script src="./js/services/utils.js"></script>
  <script src="./js/controllers/signin/signin.js"></script>
  <script src="./js/controllers/storyBoard/storyBoard.js"></script>
  <script src="./js/controllers/analytics/analytics.js"></script>
  <script src="./js/controllers/featureSetup/featureSetup.js"></script>
  <script src="../bower_components/jquery/jquery.js"></script>
  <script src="../bower_components/angular/angular.js"></script>
  <script src="../bower_components/angular-tour/dist/angular-tour-tpls.min.js"></script>

</head>

<body ng-app="scrummage">

  <div ui-view

  ></div>

</body>

</html>

navbar.html:

<div class="sidebar-nav">
    <ul>
      <li><a href="#"><i class="grow fa fa-gear nav-list-icon"></i></a>
<tour step="currentStep">
  <span tourtip="tip 1"> Highlighted </span>
  <span tourtip="tip 2"> Elements </span>
  <input tourtip="You can use it as an attribute on your element" />
  <span tourtip="Full options"
        tourtip-step="3"
        tourtip-next-label="Next"
        tourtip-placement="right"
        tourtip-offset="60">Full options</span>
</tour>
      </li>
      <div id= "analyticsModal" ng-controller='analyticsCtrl'>
      <li><a href = "#" ng-click="open()"><i class="grow fa fa-area-chart nav-list-icon"></i></a></li> 
            <div modal="showModal"  close="cancel()" ng-include="'../js/controllers/analytics/analytics.html'"></div>
      </div>
      <div id= "featureSetupModal" ng-controller='featureSetupCtrl'>
      <li><a href="#" ng-click="open()"><i class="grow fa fa-plus"></i></a></li>
          <div class="featureModal" modal="showModal" close="cancel()" ng-include="'../js/controllers/featureSetup/featureSetup.html'"></div>
      </div>
      <li><a href="/logout"><i class="grow fa fa-sign-out"></i></a></li>
    </ul>
</div>

Answer №1

After some troubleshooting, I discovered my mistake. The screenshot displayed above actually showcases a view that was nested within another view. I overlooked including:

$scope.currentStep = -1;

within the scope of the parent view.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Pressing the enter key in the input field will cause the multistep progress bar to update its

When I press Enter in each input field, I want the multi-step progress bar to dynamically update by adding the 'is-active' class to the next list item and removing it from the previous one. How can I achieve this using jQuery? ...

Establishing properties while creating a fresh instance of a class

I am currently working on developing an invoice application using TypeScript. In my project, I have created an Invoice class with several properties and objects. However, when attempting to set the properties of an item object within the Invoice class usin ...

Issue with Text Box design

A text box on a web page is used to modify the IP address. After editing the content in the text box, its style changes to resemble a second box. How can the style be changed back to that of the original text box? JavaScript is being used on the client sid ...

Handling Website Downtime with PHP Simple HTML DOM Parser

I have been extracting data from a government website for health updates in Turkey. However, if the site experiences downtime or fails to load, my own website stops displaying any content after fetching and parsing the news. Is there a way to optimize th ...

Preserve the parameter navigation stored within a flatlist and showcase it on a separate screen

I am looking to save a navigation parameter from a flatlist so that it can be displayed on another screen. This parameter is essentially a title stored in an array for the flatlist. react-native ScreenA <FlatList data={ this.state.FlatListItems } key ...

I am looking to create a split div with a diagonal line running through

Is there a way I can create this Mockup using html5 and css3, but also add diagonal lines to divide the div? Any suggestions on how to achieve this? ...

Using ReactJS to search for and replace strings within an array

A feature of my tool enables users to input a string into a textfield and then checks if any words in the input match with a predetermined array. If the user's string contains a specific name from the array, I aim to replace it with a hyperlink. I&a ...

Is there a way to increase the spacing between the titles of these progress bars?

Ensure your responsiveness by enabling the Toggle Device Toolbar on your browser I'm attempting to create a progress bar, but I'm facing some challenges. Firstly, I want to increase the height of the semi-transparent black background, but I can& ...

The configuration of DataTables with the rowGrouping plugin and specifying aoColumns definitions encountered issues

Currently, I am in the process of working on a table that utilizes rowGrouping. Up until now, working with datatables has been smooth sailing for me. However, I have encountered some challenges with my current datatable implementation. The table is initia ...

Having trouble connecting Nextjs with ChromaDB?

I am encountering issues while trying to establish a connection with the Chromadb vector database in Nextjs. The objective is to store user-generated content in Chromadb. Below is the code snippet I am utilizing along with its dependencies: Dependencies V ...

Firestore information does not appear visible

I encountered an issue with my custom hook where I am fetching images from a Firestore collection. Everything was working smoothly until I attempted to retrieve the metadata of the images as well. The problem arose when I included the getMetaData function, ...

Error in Laravel npm package

Working on my Laravel project, I encountered an issue while trying to implement a video chat feature using https://github.com/PHPJunior/laravel-video-chat?ref=madewithlaravel.com with laravel-echo-server. Despite trying various solutions, none seemed to wo ...

The Discord.js bot is unable to send messages in embedded format

I created a Discord bot using discord.js with multiple commands, including three commands with embed forms. One command, "help", works perfectly fine, but the other two are not functioning properly. All of them have the same main code structure, specifical ...

Socket.io filters incoming data for xss vulnerabilities

I am currently utilizing socket.io in expressjs 3 and I'm looking to sanitize incoming messages using express-validator. Here's the code snippet I have: var expressValidator = require('express-validator') , sanitize = require('exp ...

The value within the style.setProperty function does not get applied

I have a progress bar that dynamically increases based on user input: <div class="progressBarContainer percentBar"> <div class="progressBarPercent" style="--width:${gPercent}" id="${gName}-pbar">< ...

Is there a way to use AJAX to call only a specific PHP function without reloading the entire page

I am trying to retrieve data only from the php function instead of the entire page data. Here is the content of my demo.php file: <? echo "Whole Page data"; $name = $_POST['name']; if ($name == "demo"){ demo(); } ...

What are the best ways to ensure text stays center aligned and prevent position absolute elements from overlapping?

I'm currently working on a project that involves center-aligning the page title within the parent div. However, I have run into an issue with an overlapping back button when the page title is too long due to its absolute positioning. Can anyone provid ...

Having trouble with AngularJS not rendering on your HTML page?

This question has probably been asked countless times, but I'm genuinely unsure about what I'm doing wrong. The solutions I've come across so far haven't fixed the issue for me. Just to provide some context, I'm currently followin ...

The disableResizing feature in Fullcalendar is currently functional only on the month view

Incorporating three different views into my fullcalendar - month, agendaWeek, and agendaDay. I am seeking a solution to enable drag & drop functionality while also restricting event resizing. As of now, I have managed to achieve this using the code snippet ...

Show information from JSON based on the provided parameter

I'm trying to display JSON data based on a parameter passed through state params. However, when using the underscore library, the array is not showing anything. I need help checking the controller code for any issues or if there's an alternative ...