Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Guided Tour

Guided Tour creates a step-by-step walkthrough on top of the real UI. Use it to teach users how a screen works, introduce a new feature, or guide them through a complex flow by attaching steps to existing elements with anchors or selectors.

Use Guided Tour when you need:
  • A first-run onboarding tour or feature discovery flow.
  • Steps attached to real interface elements through ngsTourAnchor, selectors, or an element callback.
  • Optional backdrop highlighting to focus attention on the current element.
  • Navigation between steps, keyboard control, route changes, or waiting for dynamic elements.
  • Custom step content with plain text, HTML, or an Angular template.

Do not use Guided Tour for a simple hover hint, anchored menu, confirmation dialog, form wizard, documentation page, or marketing onboarding screen. Use Tooltip, Popover, Confirm, Dialog, Stepper, or normal page content for those cases.

Guided Tour API

TourAnchorDirective

Directive used to mark elements as tour anchors.

InputTypeDescription
ngsTourAnchorstringUnique identifier for the tour step anchor.

TourService

Service to control the guided tour.

MethodDescription
start(steps: TourStepConfig[])Starts the tour with the provided step configurations.
end()Ends the current tour.
next()Goes to the next step.
prev()Goes to the previous step.
goToStep(index: number)Goes to a specific step by index.

TourStepConfig

Configuration object for a tour step.

PropertyTypeDescription
anchorIdstring | (() => HTMLElement | string)Unique identifier for the anchor or a function returning the element.
titlestringTitle of the tour step.
contentstringText content of the tour step.
htmlContentstringHTML content for the tour step (sanitized).
withBackdropbooleanWhether to show a backdrop and highlight the element.
routestringRoute to navigate to before showing the step.
positionTourStepPositionExplicit position for the tour step.